MM/DD/YYYY date format for US English

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? Thanks in advance, Rob

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

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
participants (2)
-
Martin Edenhofer
-
Rob McKrill