From 2883e34069184bea8f0d086f789beb769e462f7b Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 6 Oct 2006 11:22:42 +0000 Subject: [PATCH] avoid double time offset in calendar. props to priv. fixes #2189 git-svn-id: http://svn.automattic.com/wordpress/trunk@4350 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 3bda79ac7..cde0798dc 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -452,8 +452,8 @@ function get_calendar($initial = true) { else $thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2); } else { - $thisyear = gmdate('Y', current_time('timestamp') + get_option('gmt_offset') * 3600); - $thismonth = gmdate('m', current_time('timestamp') + get_option('gmt_offset') * 3600); + $thisyear = gmdate('Y', current_time('timestamp')); + $thismonth = gmdate('m', current_time('timestamp')); } $unixmonth = mktime(0, 0 , 0, $thismonth, 1, $thisyear);