Ticket #1484156: daylight.diff
| File daylight.diff, 0.5 kB (added by runico, 2 years ago) |
|---|
-
program/include/main.inc
old new 1575 1575 1576 1576 // get user's timezone 1577 1577 $tz = $CONFIG['timezone']; 1578 if ($CONFIG['dst_active'])1579 $tz++;1580 1578 1581 1579 // convert time to user's timezone 1582 1580 $timestamp = $ts - date('Z', $ts) + ($tz * 3600); 1581 if ($CONFIG['dst_active'] && date("I", $timestamp) == "1") 1582 $timestamp += 3600; 1583 1583 1584 1584 // get current timestamp in user's timezone 1585 1585 $now = time(); // local time
