diff options
author | thomascube <thomas@roundcube.net> | 2008-09-03 17:17:17 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-09-03 17:17:17 +0000 |
commit | 62784a2ce5766058838ea5643b09cc2f7a573343 (patch) | |
tree | f051a9c810722e5825a6b9160b1dfd17f1326388 /program/include/main.inc | |
parent | c8ae2497b7e4c7393210ed186acd672a0040389f (diff) |
Interesting: (0 == 'auto') => true
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 469d8441c..3fad9cbfb 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -706,8 +706,8 @@ function format_date($date, $format=NULL) return ''; // get user's timezone - if ($CONFIG['timezone'] == 'auto') - $tz = isset($_SESSION['timezone']) ? $_SESSION['timezone'] : intval(date('O'))/100; + if ($CONFIG['timezone'] === 'auto') + $tz = isset($_SESSION['timezone']) ? $_SESSION['timezone'] : date('Z')/3600; else { $tz = $CONFIG['timezone']; if ($CONFIG['dst_active']) |