Interesting: (0 == 'auto') => true
| | |
| | | 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']) |
| | |
| | | // 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'])); |