Closed (fixed)
Project:
Event
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2007 at 22:08 UTC
Updated:
16 Dec 2007 at 13:12 UTC
Jump to comment: Most recent file
I noticed that my local time was consistently behind by one hour if I set my timezone to "US/Eastern" or "America/New York" (e.g. 10:00am when it was really 11:00am). I could only obtain the proper time by setting the timezone to "Etc/GMT-4".
After upgrading from PHP 4.4.6 to 5.2.3, the problem went away. I understand that there are major difference with how timezones are handled in Drupal between php 4 & 5, so I presume there is a bug somewhere in the 4.x code.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Eastern-AustraliaTZ.png | 38.26 KB | CheckeredFlag |
Comments
Comment #1
killes@www.drop.org commentedHow did you observe your local time in event.module?
Comment #2
CheckeredFlag commentedI observed the current local time from /admin/settings/date-time in the date format menus. As I experimented with different timezone values, I would note the effects in the menus further below.
Comment #3
killes@www.drop.org commentedThanks.
What is displayed for the date format string depends on the server time. If the server time is not switched to DST then what you observered should happen.
However, when I change the "Default time zone" setting, the timestrings in the "date format" section don't change at all. Even if I set it to some TZ in Australia...
Comment #4
CheckeredFlag commentedVery interesting. The time strings continue to change to the local time of the default timezone I select. (See attached screenshot.)
Additionally, I had noticed that timestamps were off when comments were posted as well as the "Last updated" time on /admin/logs/updates after clicking "Check manually".
I should note, however, that I'm using Windows Server 2003 and IIS 6.0. I don't know that this factors in as long as php correctly interprets the proper time/zone. I have confirmed that the server does indeed have the correct time and timezone (i.e. "Eastern Daylight Time").
Here is the cygwin output for /usr/bin/date as well as php date() calls for both 4.4.6 and 5.2.3:
Also, I'm sure that phpinfo() also displayed the correct time and GMT offset at the bottom so it appears that php is handling times correctly. I would only see incorrect times in Drupal while using php 4.4.6. Now that I have upgraded to php 5.2.3, it is difficult for me to provide any additional info. I'm just hoping that this will help diagnosis if there is indeed a problem with the Event module's timezone processing.
Comment #5
killes@www.drop.org commentedSince it is fixed for the bug submitter and I don't care for IIS, I mark this fixed.
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.