summaryrefslogtreecommitdiff
path: root/program
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
parentc8ae2497b7e4c7393210ed186acd672a0040389f (diff)
Interesting: (0 == 'auto') => true
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc4
-rw-r--r--program/steps/settings/func.inc2
2 files changed, 3 insertions, 3 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'])
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index ef3c24d26..bb4b0d21e 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -105,7 +105,7 @@ function rcmail_user_prefs_form($attrib)
// daylight savings
if (!isset($no_override['dst_active'])) {
$field_id = 'rcmfd_dst';
- $input_dst = new html_checkbox(array('name' => '_dst_active', 'id' => $field_id, 'value' => 1, 'disabled' => ($config['timezone'] == 'auto')));
+ $input_dst = new html_checkbox(array('name' => '_dst_active', 'id' => $field_id, 'value' => 1, 'disabled' => ($config['timezone'] === 'auto')));
$table->add('title', html::label($field_id, Q(rcube_label('dstactive'))));
$table->add(null, $input_dst->show($config['dst_active']));