Closed (won't fix)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Nov 2011 at 05:49 UTC
Updated:
26 Oct 2018 at 02:50 UTC
Jump to comment: Most recent
I'm not sure what is going wrong, but I created a Date field, and though it has been working fine, on March 12, 2012 and beyond all dates entered are retrieved one day earlier. The fields in the node edit display the correct date, but retrieving is the problem. I'm not sure if it is a timezone issue? Why March 12, 2012 and past that? Could this problem be a bug?
Comments
Comment #1
Roze-1 commentedSubscribing !! facing the same here..
Comment #2
Greg Landgraf commentedHaving the same problem here. Also, this seems to be a new problem: I've got a calendar event in November 2012 that was displaying fine; when I made an edit to it today, it started displaying a day earlier.
Comment #3
Roze-1 commentedPlease check the below link for more information, It seems one of my timezone was shifted an hour earlier. :(
http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc
Comment #4
leisurman commentedIm having the same problem does someone know the answer?
Comment #5
Greg Landgraf commentedAha... March 12 is when daylight savings time starts. So it looks like when it sees, say, March 15, 2012, it decides that it's actually March 14, 2012, at 11 p.m.
An ugly workaround is to go into manage fields for the date and change the granularity to go down to the hour, rather than just the day. Then, in the item itself, set the hour at 2, so that even with the hour shift, the date will show up right. (The hour doesn't show up on the final page, at least not with how my site is set up.)
I suspect there's a better way to do it, and I'd love to hear it, but that's at least a stopgap.
Comment #6
Roze-1 commentedPlease use the DST module, it will tackle your timezone for you
http://drupal.org/project/dst
Comment #7
Greg Landgraf commentedThat's much better. Thanks, Roze.
Comment #8
Anonymous (not verified) commentedSame problem on D7, All my dates now shifted 1 day, just as described in #5.
I need a way to disable DST correction, because my dates are "as entered", with no need to adjust for DST.
Comment #9
karens commentedEverything about timezone handling has changed from D6 to D7. Please don't switch this from one version to the other.
If you think you have a D7 problem look for a D7 issue, or open one if you don't see one.
Comment #10
damienmckennaUnfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.