Author Topic: Date Format Wrong  (Read 2002 times)

cguyer

  • Newbie
  • *
  • Posts: 33
    • MSN Messenger - colby_guyer@hotmail.com
    • AOL Instant Messenger - excag03
    • Yahoo Instant Messenger - excag18
    • View Profile
    • TIU11
    • Email
Date Format Wrong
« on: July 14, 2009, 11:07:19 am »
I checked out the lang and general files for en_us but they look just fine with m/d/y  format. Users by default come up with en_us localization but the date format is still defaulting to
d/m/Y and im not sure why. Where all is this set? could it be related to an older issue and just followed through the upgrade?
« Last Edit: July 14, 2009, 11:09:10 am by cguyer »

strikeog

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Date Format Wrong
« Reply #1 on: July 19, 2009, 03:32:15 pm »
Same problem for me on 1.5rc

I went to administration/default user preferences/general

Set localization to en_us
Set date format to n/j/Y (thus expecting today to be formatted 7/19/2009)
Set descriptive date format to D, M j (thus expecting today to be formatted Sun, Jul 19)

Went to my personal account settings to check these settings had propagated to my account - they had.

Refreshed.

And yet...

In Calendar, day view is reading Sunday, 07/26/2009
week view is reading 20/07/2009 - 26/07/2009

Days and months the wrong way round, leading zeros not dropped - it's kind of a mess all round.... any thoughts?

strikeog

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Date Format Wrong
« Reply #2 on: July 19, 2009, 08:00:52 pm »
Solved:

in application/views/event/viewweek.php

Line 32 currently reads:

$date_format = user_config_option('date_format', 'd/m/Y');

Should read:

$date_format = user_config_option('date_format', 'm/d/Y');

 

anything
anything