From cd4a05da676542e10f5b89f17633024b4aef6e36 Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@4350 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 3bda79ac74..cde0798dc5 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);