Make WordPress Core


Ignore:
Timestamp:
04/24/2004 09:52:24 PM (21 years ago)
Author:
saxmatt
Message:

Timezone fixes, I hope.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1108 r1150  
    111111$what_to_show = get_settings('what_to_show');
    112112$archive_mode = get_settings('archive_mode');
    113 $time_difference = get_settings('time_difference');
    114113$use_gzipcompression = get_settings('gzipcompression');
    115114
     
    130129}
    131130
    132 $add_hours = intval($time_difference);
    133 $add_minutes = intval(60 * ($time_difference - $add_hours));
     131$add_hours = intval(get_settings('gmt_offset'));
     132$add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));
    134133$wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)";
    135134
Note: See TracChangeset for help on using the changeset viewer.