I noticed that in both my Drupal 5.7 and 6.1 installations, the time under the "Date and time" section in Administration is off by 1 hour (e.g. -0500 shows as being 12:42am when in actuality it is 1:42am in -0500). After a little investigation, I found that using "putenv("TZ=US/Eastern");" in a test script sets the correct date/time to be used by the date() function (for my time zone of course). Is there a way to fix this date/time issue in Drupal, or at least a way to use putenv to set the time zone to that of the user's for the execution of the php script(s) as a workaround? Perhaps it has something to do with old DST rules?

Comments

jtjones23’s picture

I'm having the same problem with the incorrect time being shown in the Date & Time setting. Even though I have the time zone set to America/LA the time is one hour off. I thought of just changing the default time zone to America/Denver which displays the correct time but I allow the public to submit events so I need the default time zone to be correct (don't want to confuse folks).

Could this be a server issue that will be fixed the first week of April (old DST change)? This problem started some time after the time change but I don't think it started the day of the time change (weird).