From: Michael Vogel Date: Wed, 1 Apr 2015 20:25:53 +0000 (+0200) Subject: Events from the past aren't shown anymore (hopefully) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25299f06043ee033bb9f7487d7ab739b9e4d3265;p=friendica.git Events from the past aren't shown anymore (hopefully) --- diff --git a/boot.php b/boot.php index c6cfde0071..5db214c9f3 100644 --- a/boot.php +++ b/boot.php @@ -1830,11 +1830,11 @@ if(! function_exists('get_events')) { $bd_short = t('F d'); $r = q("SELECT `event`.* FROM `event` - WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` > '%s' + WHERE `event`.`uid` = %d AND `type` != 'birthday' AND `start` < '%s' AND `start` >= '%s' ORDER BY `start` ASC ", intval(local_user()), dbesc(datetime_convert('UTC','UTC','now + 6 days')), - dbesc(datetime_convert('UTC','UTC','now - 1 days')) + dbesc(date("Y-m-d 00:00:00")) ); if($r && count($r)) {