thomascube
2008-09-03 c8ae2497b7e4c7393210ed186acd672a0040389f
program/include/main.inc
@@ -706,9 +706,13 @@
    return '';
   
  // get user's timezone
  $tz = $CONFIG['timezone'];
  if ($CONFIG['dst_active'])
    $tz++;
  if ($CONFIG['timezone'] == 'auto')
    $tz = isset($_SESSION['timezone']) ? $_SESSION['timezone'] : intval(date('O'))/100;
  else {
    $tz = $CONFIG['timezone'];
    if ($CONFIG['dst_active'])
      $tz++;
  }
  // convert time to user's timezone
  $timestamp = $ts - date('Z', $ts) + ($tz * 3600);