Feng Forum

Support => Feng Office 1 => Older versions => 1.2 => : mailnet_uk February 19, 2009, 06:28:36 AM

: Changing date format in 1.2.0.1
: mailnet_uk February 19, 2009, 06:28:36 AM
I've upgraded to 1.2.0.1 and was hoping this had been fixed, but it hasn't  :(

In a previous post on these forums, someone advised to make the following changes to allow the dates to be displayed in British (dd/mm/yyyy) :

- in language/en_us/lang.js change the date format and date format alternatives
- in language/en_us/general.php change the date format and date format description

I've made these changes, which do display perfectly, and I can add an appointment in my calendar on the correct date (e.g. 17/02/2009) but when I edit an appointment, the date is far in advance - e.g. 02/05/2010.
: Re: Changing date format in 1.2.0.1
: werner.wuerfel February 20, 2009, 01:11:32 PM
Hi,

have a look a this topic http://forums.opengoo.org/index.php?topic=788.0.

You have to change the following files:
- langs.js
   'date format': 'd/m/Y',
   'date format alternatives': 'd/m/y|j/n/Y|j/n/y|j/m/y|d/n/y|j/m/Y|d/n/Y',
- general.php
   'date format' => 'd/m/Y',
   'date format description' => '(dd/mm/yyyy)',
: Re: Changing date format in 1.2.0.1
: mailnet_uk February 21, 2009, 11:55:32 AM
That was the post I was following when I made the changes, as I explained in my original post.

The date does display in the new format perfectly fine, and even lets me create appointments with the correct format, but when editing an appointment, the date is well off.
: Re: Changing date format in 1.2.0.1
: ignacio February 23, 2009, 08:51:33 PM
I think this has been solved for 1.2.1, that will be out soon.
: Re: Changing date format in 1.2.0.1
: mailnet_uk March 04, 2009, 08:22:25 PM
This has changed a little in 1.2.1, however it always shows the date in American format in the date picker - e.g. editing an appointment on 6th March 2009 shows as 03/06/2009 in the picker.

Then when you open the date picker, it selects "3rd June 2009", which is technically correct, as 03/06/2009 in British is 3rd June!

However when an appointment is created/edited, the date format needs to write to the picker's field in British.