ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Entry Date losing one hour upon each entry save

October 31, 2012 10:16am

Subscribe [2]
  • #1 / Oct 31, 2012 10:16am

    porpoise

    30 posts

    Hello,

    I have an entry and if the Entry Date is after when Daylight Savings Time concludes (November 4), the entry date loses 1 hour upon each save.

    For example, if I set Entry Date to be 11/5/12 at 10:30AM and then click “Submit”, the entry saves as 11/5/12 at 9:30AM. If I go back to edit it and I don’t change the Entry Date but adjust something else and then click “Submit”, the entry saves as 11/5/12 at 8:30AM. And so on - with each save it loses an hour.

    The server time is set for Central Time and is observing DST. My system localization and user localization are both set for Central Time and are observing DST (because as of this writing, DST is in effect).

    Any ideas about what’s going on?

    Thanks!

    Running EE v2.1.3

  • #2 / Nov 01, 2012 12:36pm

    Shane Eckert

    7174 posts

    Hey porpoise,

    Thank you for posting your question.

    There have been several DST and localization bug fixes since 2.1.3. Is there any chance that you can upgrade to 2.5.3?

    If that is not possible, I can try and work out where the issue is, but we may just end up needing you to upgrade.

    Please let me know!

    Thank you,

  • #3 / Nov 01, 2012 12:55pm

    porpoise

    30 posts

    Thanks for your help. Unfortunately I can’t upgrade right now so what can we do instead of that?

  • #4 / Nov 06, 2012 11:30am

    Shane Eckert

    7174 posts

    Hi Porpoise,

    Let’s make sure that all your localization settings are correct first.

    In general, this is how time should work.

    First is the server’s settings, defined in Admin->Localization Settings
Here you want to make sure the Time Zone is set correctly and reflects the timezone the server is located in. Don’t worry about the Server Offset, that is rarely used and is intended to make minor adjustments.

    ExpressionEngine stores dates and times in a UNIX timestamp format that relates to GMT. Then the timestamp is offset by the value of your timezone setting for the server.

    The other side of this is the localization for your own Member account. Click the “My Account” link on the far right of the Control Panel and then check your Localization Settings. Make sure your timezone and DST settings are accurate as well.

    To bring it all together, ExpressionEngine will display dates and times localized based on your settings, if you are logged into the front of your site. If no one is logged in, dates and times are localized to the server’s settings.

    The option between localized and fixed will determine how you want it to be displayed. Localized will be dependent on the user’s logged in state, fixed will always use the server’s localization settings.

    Does that make sense? Can you make sure that you localization settings are correct?

    Cheers,

  • #5 / Nov 08, 2012 4:06pm

    porpoise

    30 posts

    Yes, all of my settings are correct. And now that it is no longer Daylight Savings Time, the issue has resolved. Very curious. Any idea why?

  • #6 / Nov 08, 2012 4:23pm

    Shane Eckert

    7174 posts

    Hey porpoise,

    With DST over you working again? Not sure why. Even with all the localization settings correct?

    I am running 2.5.3 and I did not have any issues. That is the only difference I can think of.

    Is there anything else I can help you with?

    Cheers,

  • #7 / Nov 09, 2012 7:47am

    porpoise

    30 posts

    For now, no. I’m afraid this will rear its ugly head when we are out of DST, though.

  • #8 / Nov 09, 2012 5:18pm

    Shane Eckert

    7174 posts

    Hi porpoise,

    Hopefully not. When you can upgrade, please do so.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases