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
This commit is contained in:
Mark Jaquith 2006-10-06 11:22:42 +00:00
parent bc2d62560c
commit cd4a05da67
1 changed files with 2 additions and 2 deletions

View File

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