From 0f43de45c5dcae265e954b58d4ff33064cc501c1 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Apr 2009 22:17:13 +0000 Subject: [PATCH] Fix sign problem when converting from gmt_offset to new Etc/GMT timezone. Props Otto42. see #3962 git-svn-id: http://svn.automattic.com/wordpress/trunk@10962 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 2a900c0d9d..9b5bd91402 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -137,8 +137,8 @@ else: // looks like we can do nice timezone selection! $current_offset = get_option('gmt_offset'); $tzstring = get_option('timezone_string'); if (empty($tzstring)) { // set the Etc zone if no timezone string exists - if ($current_offset < 0) $offnum = ceil($current_offset); - else $offnum = floor($current_offset); + if ($current_offset < 0) $offnum = - ceil($current_offset); + else $offnum = - floor($current_offset); $tzstring = 'Etc/GMT' . (($offnum >= 0) ? '+' : '') . $offnum; } ?>