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);