Use current_time() to calculate current time. Props filosofo. fixes #10915

git-svn-id: http://svn.automattic.com/wordpress/trunk@12590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-12-30 17:56:09 +00:00
parent 00df0c3f5f
commit d375ef7d54
3 changed files with 8 additions and 8 deletions

View File

@@ -1123,7 +1123,7 @@ function get_calendar($initial = true) {
echo "\n\t</tr>\n\t<tr>\n\t\t";
$newrow = false;
if ( $day == gmdate('j', (time() + (get_option('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_option('gmt_offset') * 3600)) && $thisyear == gmdate('Y', time()+(get_option('gmt_offset') * 3600)) )
if ( $day == gmdate('j', current_time('timestamp')) && $thismonth == gmdate('m', current_time('timestamp')) && $thisyear == gmdate('Y', current_time('timestamp')) )
echo '<td id="today">';
else
echo '<td>';