[drupal-devel] [bug] DST support
Issue status update for http://drupal.org/node/23029 Project: Drupal Version: 4.6.0 Component: base system Category: bug reports Priority: normal Assigned to: Anonymous Reported by: pyromanfo Updated by: pyromanfo Status: patch 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 <?php $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. pyromanfo
Issue status update for http://drupal.org/node/23029 Project: Drupal Version: 4.6.0 Component: base system Category: bug reports Priority: normal Assigned to: Anonymous Reported by: pyromanfo Updated by: pyromanfo Status: patch This seems to have an issue with the new event module, as the timestamps from it are correct in DST. pyromanfo Previous comments: ------------------------------------------------------------------------ May 17, 2005 - 00:13 : pyromanfo 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 <?php $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.
Issue status update for http://drupal.org/node/23029 Project: Drupal Version: 4.6.0 Component: base system Category: bug reports Priority: normal Assigned to: Anonymous Reported by: pyromanfo Updated by: kbahey Status: patch pyro 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. kbahey Previous comments: ------------------------------------------------------------------------ May 16, 2005 - 19:13 : pyromanfo 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 <?php $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. ------------------------------------------------------------------------ May 16, 2005 - 19:25 : pyromanfo This seems to have an issue with the new event module, as the timestamps from it are correct in DST.
Issue status update for http://drupal.org/node/23029 Project: Drupal Version: 4.6.0 Component: base system Category: bug reports Priority: normal -Assigned to: Anonymous +Assigned to: Eric Scouten Reported by: pyromanfo Updated by: Eric Scouten Status: patch Argh. 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). Eric Scouten Previous comments: ------------------------------------------------------------------------ May 16, 2005 - 17:13 : pyromanfo 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 <?php $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. ------------------------------------------------------------------------ May 16, 2005 - 17:25 : pyromanfo This seems to have an issue with the new event module, as the timestamps from it are correct in DST. ------------------------------------------------------------------------ May 17, 2005 - 06:38 : kbahey pyro 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.
participants (3)
-
Eric Scouten -
kbahey -
pyromanfo