diff --git a/clock.module b/clock.module index 2bed57b..2af52c7 100755 --- a/clock.module +++ b/clock.module @@ -67,9 +67,9 @@ function clock_block_configure($delta = '') { // to 'Site time zone', 'User time zone' and 'Local time zone' it contains // the name of a custom time zone, so the time zone type must be set to // integer value 4. - $time_zone_type = ($time_zone === 1 || $time_zone === 2 || $time_zone === 3) ? $time_zone : 4; - $custom_time_zone = ($time_zone_type === 4) ? $time_zone : 'UTC'; - $form['time_zone_type'] = array( + $time_zone_type = ($time_zone == 1 || $time_zone == 2 || $time_zone == 3) ? $time_zone : 4; + $custom_time_zone = ($time_zone_type == 4) ? $time_zone : 'UTC'; + $form['time_zone_type'] = array( '#type' => 'radios', '#title' => t('Time zone settings'), '#description' => t('Local time zone is the time zone on the operating system of the person visiting (regardless of anonymous or authenticated).'),