aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-15 20:13:25 -0800
committerfriendica <info@friendica.com>2013-01-15 20:13:25 -0800
commitddd8a0e062964cc18a7ef54828019ee28e63175b (patch)
treec86901191690ddddaa861c0d5cce4d8f845030cb /mod/ping.php
parent275fa6e1d26b4ce3090719c9b9d913ef1f2091a1 (diff)
downloadvolse-hubzilla-ddd8a0e062964cc18a7ef54828019ee28e63175b.tar.gz
volse-hubzilla-ddd8a0e062964cc18a7ef54828019ee28e63175b.tar.bz2
volse-hubzilla-ddd8a0e062964cc18a7ef54828019ee28e63175b.zip
still some bugs but events are happening again.
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php6
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) {