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" time changes by one minute

August 23, 2010 6:11pm

Subscribe [2]
  • #1 / Aug 23, 2010 6:11pm

    Joe Michaud

    154 posts

    Hello,

    I’ve taken over the maintenance of an event site that has a rather bazaar problem and I’m having trouble figuring out where to look to find the source.

    The event date at time is set using the “Entry Date” field which will occasionally roll the time back by one minute when the entry is saved.  So entering a time of 7:30 might result in an actual saved time of 7:29.

    I somewhat suspect that the problem lies in the localization settings which include the following:
    Server Time Zone: (UTC -5:00)
    Server Offset: 60
    Default Time Format: United States
    Daylight Savings Time: Yes
    Honor Daylight Saving Time associated with…: Yes

    Do you see anything in here that might cause the symptom I described?  I have no idea why they set up a server offset of a full hour but I intend to undo it…  maybe that will help?

    ExpressionEngine version 1.6.8 build 20090723.

    Thanks!

  • #2 / Aug 24, 2010 3:44pm

    Ingmar

    29245 posts

    I think it might have to do with the seconds, actually. Can you try to add

    $conf['include_seconds'] = 'y';

    to your config.php and check for yourself? Also, EE 1.6.9 is a recommended upgrade; your version is more than one year old.

  • #3 / Aug 24, 2010 3:53pm

    Joe Michaud

    154 posts

    Thanks as always, Ingmar.  That config setting should help a ton.

    Upgrading the EE version is on my to-do list but I first have to find out from the client if their download account is current.

  • #4 / Aug 24, 2010 4:00pm

    Ingmar

    29245 posts

    Yes, I understand. Let us know if that setting helps with your issue, though.

  • #5 / Aug 25, 2010 1:11pm

    Will Bolton

    30 posts

    I have also come across this issue - not with the entry date field but with custom date fields. And not in EE 1.6.8 but in EE 2.1.0 Build 20100810. Unfortunately at the moment I don’t seem to be able to recreate the issue.

    I’ve turned on the hidden configuration setting as suggested above.

    I’ll report back if it happens again.

  • #6 / Aug 25, 2010 2:57pm

    Ingmar

    29245 posts

    Will, if this happen again please post in the EE 2 forums so we can keep this to the appropriate place. Thanks.

  • #7 / Aug 25, 2010 3:02pm

    Will Bolton

    30 posts

    Oops! Got to this thread via search. It hadn’t even occurred to me to check which forum I was in.

    Will put it in the right place next time, as the bishop said to the actress. Cheers.

  • #8 / Aug 25, 2010 3:05pm

    Ingmar

    29245 posts

    Thanks! We’ll be here.

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

ExpressionEngine News!

#eecms, #events, #releases