Closed (won't fix)
Project:
Drupal core
Version:
4.6.0
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2005 at 00:13 UTC
Updated:
20 May 2005 at 13:38 UTC
One quick and dirty way to fix Daylight Savings Time in Drupal would be to add the following line in the function format_date in common.inc
$timestamp += date("I")*3600;
It adjusts the timestamp if DST is currently active. It fixed it on my site, at any rate, it seems it'd handle both cases, DST enabled or not using DST at all.
Comments
Comment #1
pyromanfo commentedThis seems to have an issue with the new event module, as the timestamps from it are correct in DST.
Comment #2
kbahey commentedpyro
Can you please advise where exactly in the function this should go?
If you know how to make patches make one and paste it here (file attaching is busted for now).
If not, then provide the few lines above and below where the changes should go.
Comment #3
Eric Scouten commentedArgh. It would work for me, except for the part where I recently moved my site to a server in a part of the US that doesn't observe DST (Arizona).
Comment #4
Eric Scouten commentedComment #5
dries commentedPlease provide a real patch, or show us where to put this.
Comment #6
killes@www.drop.org commentedthis won't work if your server is in another timezone or country as Eric pointed out