From 5f7611dcbee5d02b86a849cc021dfd44db30f5ca Mon Sep 17 00:00:00 2001 From: Alex King Date: Sat, 4 Oct 2003 02:33:16 +0000 Subject: [PATCH] added time offset git-svn-id: https://develop.svn.wordpress.org/trunk@410 602fd350-edb4-49c9-b593-d223f7449a82 --- b2calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2calendar.php b/b2calendar.php index 3345bbe144..5c453d8762 100644 --- a/b2calendar.php +++ b/b2calendar.php @@ -131,7 +131,7 @@ while($calendarmonthwithpost == 0) { ."FROM $tableposts " ."WHERE MONTH(post_date) = '$thismonth' " ."AND YEAR(post_date) = '$thisyear' " - ."AND post_date < '".date("Y-m-d H:i:s")."' " + ."AND post_date < '".date("Y-m-d H:i:s", (time() + ($time_difference * 3600)))."' " ."AND post_status = 'publish' " ."ORDER BY post_date DESC"; $querycount++; @@ -218,7 +218,7 @@ if ($ak_use_tooltip_titles == 1) { ."FROM $tableposts " ."WHERE YEAR(post_date) = '$thisyear' " ."AND MONTH(post_date) = '$thismonth' " - ."AND post_date < '".date("Y-m-d H:i:s")."' " + ."AND post_date < '".date("Y-m-d H:i:s", (time() + ($time_difference * 3600)))."' " ."AND post_status = 'publish'" );