Ticket #1484156: daylight.diff

File daylight.diff, 0.5 kB (added by runico, 2 years ago)

Patch for fix it

  • program/include/main.inc

    old new  
    15751575 
    15761576  // get user's timezone 
    15771577  $tz = $CONFIG['timezone']; 
    1578   if ($CONFIG['dst_active']) 
    1579     $tz++; 
    15801578 
    15811579  // convert time to user's timezone 
    15821580  $timestamp = $ts - date('Z', $ts) + ($tz * 3600); 
     1581  if ($CONFIG['dst_active'] && date("I", $timestamp) == "1") 
     1582    $timestamp += 3600; 
    15831583 
    15841584  // get current timestamp in user's timezone 
    15851585  $now = time();  // local time