From 7f9bf59265844627c305bd32becfa9a864bbe818 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@10962 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; } ?>