WordPress.org

Make WordPress Core

Ticket #2189: template-functions-general.php.diff

File template-functions-general.php.diff, 669 bytes (added by priv, 16 years ago)

fix for Ticket#2189

  • template-functions-general.php

     
    433433                else
    434434                                $thismonth = ''.zeroise(intval(substr($m, 4, 2)), 2);
    435435        } else {
    436                 $thisyear = gmdate('Y', current_time('timestamp') + get_settings('gmt_offset') * 3600);
    437                 $thismonth = gmdate('m', current_time('timestamp') + get_settings('gmt_offset') * 3600);
     436                $thisyear = gmdate('Y', current_time('timestamp'));
     437                $thismonth = gmdate('m', current_time('timestamp'));
    438438        }
    439439
    440440        $unixmonth = mktime(0, 0 , 0, $thismonth, 1, $thisyear);