Ticket #2189: calendar_double_offset_fix.diff

File calendar_double_offset_fix.diff, 670 bytes (added by markjaquith, 6 years ago)

Updated patch for 2.1

  • wp-includes/general-template.php

     
    421421                else 
    422422                                $thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2); 
    423423        } else { 
    424                 $thisyear = gmdate('Y', current_time('timestamp') + get_settings('gmt_offset') * 3600); 
    425                 $thismonth = gmdate('m', current_time('timestamp') + get_settings('gmt_offset') * 3600); 
     424                $thisyear = gmdate('Y', current_time('timestamp')); 
     425                $thismonth = gmdate('m', current_time('timestamp')); 
    426426        } 
    427427 
    428428        $unixmonth = mktime(0, 0 , 0, $thismonth, 1, $thisyear);