Make WordPress Core


Ignore:
Timestamp:
12/30/2009 05:56:09 PM (16 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r12587 r12590  
    11241124        $newrow = false;
    11251125
    1126         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)) )
     1126        if ( $day == gmdate('j', current_time('timestamp')) && $thismonth == gmdate('m', current_time('timestamp')) && $thisyear == gmdate('Y', current_time('timestamp')) )
    11271127            echo '<td id="today">';
    11281128        else
Note: See TracChangeset for help on using the changeset viewer.