summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-03 17:17:17 +0000
committerthomascube <thomas@roundcube.net>2008-09-03 17:17:17 +0000
commit62784a2ce5766058838ea5643b09cc2f7a573343 (patch)
treef051a9c810722e5825a6b9160b1dfd17f1326388 /program/include
parentc8ae2497b7e4c7393210ed186acd672a0040389f (diff)
Interesting: (0 == 'auto') => true
Diffstat (limited to 'program/include')
-rw-r--r--program/include/main.inc4
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'])