diff options
Diffstat (limited to 'mod/ping.php')
-rw-r--r-- | mod/ping.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/ping.php b/mod/ping.php index 6f41c80a7..34de31340 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -247,11 +247,11 @@ function ping_init(&$a) { $t5 = dba_timer(); $events = q("SELECT type, start, adjust FROM `event` - WHERE `event`.`uid` = %d AND `start` < '%s' AND `finish` > '%s' and `ignore` = 0 + WHERE `event`.`uid` = %d AND start < '%s' AND start > '%s' and `ignore` = 0 ORDER BY `start` ASC ", intval(local_user()), - dbesc(datetime_convert('UTC','UTC','now + 7 days')), - dbesc(datetime_convert('UTC','UTC','now')) + dbesc(datetime_convert('UTC',date_default_timezone_get(),'now + 7 days')), + dbesc(datetime_convert('UTC',date_default_timezone_get(),'now - 1 days')) ); if($events) { |