Ticket #3962: tz-convert-fix.diff
File tz-convert-fix.diff, 668 bytes (added by , 16 years ago) |
---|
-
wp-admin/options-general.php
135 135 $current_offset = get_option('gmt_offset'); 136 136 $tzstring = get_option('timezone_string'); 137 137 if (empty($tzstring)) { // set the Etc zone if no timezone string exists 138 if ($current_offset < 0) $offnum = ceil($current_offset);139 else $offnum = floor($current_offset);138 if ($current_offset < 0) $offnum = - ceil($current_offset); 139 else $offnum = - floor($current_offset); 140 140 $tzstring = 'Etc/GMT' . (($offnum >= 0) ? '+' : '') . $offnum; 141 141 } 142 142 ?>