Forums / Setup & design / localization of time. 24h instead of am/pm format

localization of time. 24h instead of am/pm format

Author Message

Pascal Specht

Thursday 20 September 2007 9:10:48 am

Hi all,

Despite the fact that I'm using a <b>l10n(shortdatetime)</b> filter in my templates and that I have in my site.ini

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
SiteLanguageList[]=fre-FR
TextTranslation=enabled

shortdatetime keeps producing output like 20/09/2007 <b>2:58 pm</b> instead of 20/09/2007 <b>14:58</b>, in other words the date got the french format, but the time didn't.

Anybody knows if this is a bug in shortdatetime, a UNIX system setting problem or a missing/wrong ini setting ?

Thanks in advance for any help,

Pascal

Łukasz Serwatka

Monday 24 September 2007 3:04:55 am

You can change that behavior in locale file share/locale/fre-FR.ini [DateTime].ShortDateTimeFormat

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Pascal Specht

Monday 24 September 2007 4:09:27 am

Hi Łukasz,

Thanks a lot, your answer was correct and I fixed the problem... eZ Publish is usually so well done that I did suspect a problem nearly everywhere but in eZ Publish itself!
Who should we notify so that the Date/Time settings are correct for the french people?

The correct settings are:

TimeFormat=%H:%i:%s
ShortTimeFormat=%H:%i
...
DateTimeFormat=%l %d %F %Y %H:%i:%s
ShortDateTimeFormat=%d/%m/%Y %H:%i
...

Again thanks,
Pascal

Łukasz Serwatka

Monday 24 September 2007 4:26:08 am

Hi Pascal,

You are welcome ;) I suggest to fill up an issue in the issue tracker http://issues.ez.no/
Hopefully in next eZ Publish release will be included.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Pascal Specht

Monday 24 September 2007 5:18:17 am

If anyone else runs into the problem and wants to be kept informed, here's the issue link:

http://issues.ez.no/IssueView.php?Id=11485&activeItem=1

Pascal