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
This commit is contained in:
markjaquith 2006-10-06 11:22:42 +00:00
parent c437b9c9b0
commit 2883e34069
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);