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:
parent
bc2d62560c
commit
cd4a05da67
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user