Make WordPress Core

Changeset 1301


Ignore:
Timestamp:
05/17/2004 08:46:15 PM (20 years ago)
Author:
michelvaldrighi
Message:

forgotten GMT fix for calendar

File:
1 edited

Legend:

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

    r1291 r1301  
    240240    $add_hours = intval(get_settings('gmt_offset'));
    241241    $add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));
    242     $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)";
    243242
    244243    $now = current_time('mysql');
     
    324323    $add_hours = intval(get_settings('gmt_offset'));
    325324    $add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));
    326     $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)";
    327325
    328326    // Let's figure out when we are
     
    466464        $newrow = false;
    467465
    468         if ($day == date('j', (time() + (get_settings('gmt_offset') * 3600))) && $thismonth == date('m', time()+(get_settings('gmt_offset') * 3600)))
     466        if ($day == gmdate('j', (time() + (get_settings('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_settings('gmt_offset') * 3600)))
    469467            echo '<td id="today">';
    470468        else
Note: See TracChangeset for help on using the changeset viewer.