aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-11 19:40:21 -0700
committerfriendica <info@friendica.com>2012-08-11 19:40:21 -0700
commit9899cfb5c75b6855e158d855ca0dba1344ca6262 (patch)
treea0effc38356205410b9dacd6b2b105808b112098 /mod/ping.php
parentf261871346373f649644bbfc390815294f4ecfeb (diff)
downloadvolse-hubzilla-9899cfb5c75b6855e158d855ca0dba1344ca6262.tar.gz
volse-hubzilla-9899cfb5c75b6855e158d855ca0dba1344ca6262.tar.bz2
volse-hubzilla-9899cfb5c75b6855e158d855ca0dba1344ca6262.zip
fix events ping notification backend
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index d37824645..59a56d919 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -155,7 +155,7 @@ function ping_init(&$a) {
$t5 = dba_timer();
- $events = q("SELECT count(`event`.`id`) as total, start, convert FROM `event`
+ $events = q("SELECT count(`event`.`id`) as total, start, adjust FROM `event`
WHERE `event`.`uid` = %d AND `start` < '%s' AND `finish` > '%s'
ORDER BY `start` ASC ",
intval(local_user()),
@@ -169,7 +169,7 @@ function ping_init(&$a) {
if($result['events']) {
$str_now = datetime_convert('UTC',$a->timezone,'now','Y-m-d');
foreach($events as $x) {
- if(datetime_convert('UTC',((intval($x['convert'])) ? $a->timezone : 'UTC'), $x['start'],'Y-m-d') === $str_now)
+ if(datetime_convert('UTC',((intval($x['adjust'])) ? $a->timezone : 'UTC'), $x['start'],'Y-m-d') === $str_now)
$result['events_today'] ++;
}
}