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:
parent
c437b9c9b0
commit
2883e34069
|
@ -452,8 +452,8 @@ function get_calendar($initial = true) {
|
||||||
else
|
else
|
||||||
$thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2);
|
$thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2);
|
||||||
} else {
|
} else {
|
||||||
$thisyear = gmdate('Y', current_time('timestamp') + get_option('gmt_offset') * 3600);
|
$thisyear = gmdate('Y', current_time('timestamp'));
|
||||||
$thismonth = gmdate('m', current_time('timestamp') + get_option('gmt_offset') * 3600);
|
$thismonth = gmdate('m', current_time('timestamp'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$unixmonth = mktime(0, 0 , 0, $thismonth, 1, $thisyear);
|
$unixmonth = mktime(0, 0 , 0, $thismonth, 1, $thisyear);
|
||||||
|
|
Loading…
Reference in New Issue