still some bugs but events are happening again.

This commit is contained in:
friendica
2013-01-15 20:13:25 -08:00
parent 275fa6e1d2
commit ddd8a0e062
3 changed files with 43 additions and 50 deletions

View File

@@ -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) {