PDA

View Full Version : Date format getting messed up with translations?


Quarterbore
03-18-2007, 05:20 AM
I am trying to debug an issue with one of my scripts and I am really quite confused. The script works fine in english everything is phrased so I have a few people that are using the script in other languages.

So, when I use my script in the script I get dates like this:

ENGLISH: 03-15-07
Nederlands: %e %647 %2007

I know this happens in other languages as well but I don't have the other languages on my site to test. I have one person with a site in French and their date code looks like this:

French: %30/%08/%2006
I belive this was supposed to be 30/8/2006 based on the PM I got.


I tried to trace the code as my date formating code uses the standard vBulleting function in the following context:

$ad[date] = vbdate($vbulletin->options['dateformat'], $ad['dateline'], '', '');

I tried going into my vBulletin date options to try to make changes there but that did not seem to help? My script directly displays $ad[date] so I know (or I am pretty sure I know) the problem comes from the date function but I have no idea how to fix this.

Thanks for any advise on where I might look.

skcyber
04-06-2007, 10:18 PM
a little "up" ... I have this issue in french :-/
i've tried a few things, but still have the problem :-/

Marco van Herwaarden
04-13-2007, 12:04 PM
Check the date formatting in the Language settings.