avoid double time offset in calendar. props to priv. fixes #2189
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
23ddeba64d
commit
278d36bc89
|
@ -435,8 +435,8 @@ function get_calendar($daylength = 1) {
|
|||
else
|
||||
$thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2);
|
||||
} else {
|
||||
$thisyear = gmdate('Y', current_time('timestamp') + get_settings('gmt_offset') * 3600);
|
||||
$thismonth = gmdate('m', current_time('timestamp') + get_settings('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