Rob,

you are right! Now I can verify this problem on OTRS 2.4.1-3 too.

http://bugs.otrs.org/show_bug.cgi?id=4150

Many thanks for the bug report. It's fixed now.

Feedback is very welcome!

 -Martin

On 15.08.2009, at 11:15, Martin Edenhofer wrote:

Hi Rob,

On 14.08.2009, at 17:32, Rob McKrill wrote:

I have been trying for quite a while now to figure out where I can change the date format for my installation and have hopefully exhausted all sources before asking a stupid question on the list here...

I have the preferences in the agent interface set to “United States – English”, double checked the settings in Kernel/Language/en.pm for all formats of the date/time. Everything still seems to show up as DD/MM/YYYY in all of the different spots (upper right of main screen, tickets).

Is there something I am missing? I even tried changing the settings in the en.pm file from the default and the changes I made didn’t seem to be used. Are there a different set of files being used for these preferences that aren’t noted anywhere in the documentation?

If you really use "English (United States)", Kernel/Language/en.pm is the right place. About line 33:

[...]
# date formats (%A=WeekDay;%B=LongMonth;%T=Time;%D=Day;%M=Month; %Y=Jear;)
   $Self->{DateFormat}          = '%M/%D/%Y %T';
   $Self->{DateFormatLong}      = '%T - %M/%D/%Y';
   $Self->{DateFormatShort}     = '%M/%D/%Y';
   $Self->{DateInputFormat}     = '%M/%D/%Y';
   $Self->{DateInputFormatLong} = '%M/%D/%Y - %T';
[...]

Just change it here. If you use apache+mod_perl, restart your web server to be sure that the changes are effected.

More info:
To check if the file syntax is still valid use "perl -cw Kernel/ Language/en.pm" (Kernel/Language/en.pm syntax OK need to be the result).

If still "DD/MM/YYYY" is shown, I guess that you are not using "English (United States)", I guess you are using "English (United Kingdom)" (Kernel/Language/en_GB.pm), because "DD/MM/YYYY" ist the default date format for "English (United Kingdom)". ;)

Greetings,

-Martin

---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to