SiT! Bugs - SiT!
View Issue Details
0000733SiT!setup/configpublic2009-06-16 12:182010-04-10 20:23
kieran 
ivan 
normalmajoralways
resolvedfixed 
3.45 
3.60 LTS3.60 LTS 
0000733: ldate() doesn't work with BST
It can be solved with the 'L' switch of date()
Example code taken from http://uk2.php.net/manual/en/function.date.php#69167: [^]
function zonedate($layout, $countryzone, $daylightsaving)
{
  if ($daylightsaving) {
    $daylight_saving = date('I');
    if ($daylight_saving){
      $zone=3600*($countryzone+1);
    }
  }
else {
  if ($countryzone>>0){
    $zone=3600*$countryzone;
  }
  else {
    $zone=0;
  }
}
$date=gmdate($layout, time() + $zone);
return $date;
}
No tags attached.
related to 0000629resolved ivan var_utc_offset ignores DST 
Issue History
2009-06-16 12:18kieranNew Issue
2009-06-16 13:57ivanStatusnew => confirmed
2009-06-16 14:11ivanStatusconfirmed => assigned
2009-06-16 14:11ivanAssigned To => ivan
2009-06-16 17:50ivanRelationship addedrelated to 0000629
2009-07-20 14:24ivanNote Added: 0001350
2009-07-20 14:24ivanTarget Version3.50 => 3.60
2009-08-21 14:38kieranTarget Version3.60 => 4.0
2010-03-27 15:33ivanNote Added: 0002881
2010-03-27 15:33ivanAssigned Toivan => kieran
2010-03-27 15:33ivanStatusassigned => feedback
2010-04-10 20:04ivanStatusfeedback => assigned
2010-04-10 20:04ivanAssigned Tokieran => ivan
2010-04-10 20:05ivanNote Added: 0003004
2010-04-10 20:05ivanStatusassigned => resolved
2010-04-10 20:05ivanFixed in Version => 3.60 LTS
2010-04-10 20:05ivanResolutionopen => fixed
2010-04-10 20:23ivanTarget Version4.0 => 3.61 LTS
2010-04-10 20:23ivanTarget Version3.61 LTS => 3.60 LTS

Notes
(0001350)
ivan   
2009-07-20 14:24   
Going to bump this because I think it needs more thought, I don't want to rush into half a solution for the 3.50 release.

The current work-around is the change the users UTC offset when DST changes locally. E.g. in the UK which is effectively UTC timezone, summertime setting should be UTC+1 and wintertime setting UTC+0.
(0002881)
ivan   
2010-03-27 15:33   
This should be fixed by 3.60 which makes ldate() DST aware. Can anybody confirm?
(0003004)
ivan   
2010-04-10 20:05   
Marking resolved until somebody tells me otherwise. Seems ok to me.