From f6a92e8e9963c26363aa93e5c1d6eb40c8c4c368 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Mon, 17 May 2004 20:46:15 +0000 Subject: [PATCH] forgotten GMT fix for calendar git-svn-id: https://develop.svn.wordpress.org/trunk@1301 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-general.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 3fc8e827e0..2caacb7059 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -239,7 +239,6 @@ function get_archives($type='', $limit='', $format='html', $before = '', $after $add_hours = intval(get_settings('gmt_offset')); $add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours)); - $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)"; $now = current_time('mysql'); @@ -323,7 +322,6 @@ function get_calendar($daylength = 1) { $add_hours = intval(get_settings('gmt_offset')); $add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours)); - $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)"; // Let's figure out when we are if (!empty($monthnum) && !empty($year)) { @@ -465,7 +463,7 @@ function get_calendar($daylength = 1) { echo "\n\t\n\t\n\t\t"; $newrow = false; - if ($day == date('j', (time() + (get_settings('gmt_offset') * 3600))) && $thismonth == date('m', time()+(get_settings('gmt_offset') * 3600))) + if ($day == gmdate('j', (time() + (get_settings('gmt_offset') * 3600))) && $thismonth == gmdate('m', time()+(get_settings('gmt_offset') * 3600))) echo ''; else echo '';