Author Topic: Changing date format in 1.2.0.1  (Read 9670 times)

mailnet_uk

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Email
Changing date format in 1.2.0.1
« on: 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.

werner.wuerfel

  • Sr. Member
  • ****
  • Posts: 319
    • View Profile
Re: Changing date format in 1.2.0.1
« Reply #1 on: 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)',

mailnet_uk

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Email
Re: Changing date format in 1.2.0.1
« Reply #2 on: 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.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Changing date format in 1.2.0.1
« Reply #3 on: February 23, 2009, 08:51:33 pm »
I think this has been solved for 1.2.1, that will be out soon.

mailnet_uk

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Email
Re: Changing date format in 1.2.0.1
« Reply #4 on: 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.