]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Events from the past aren't shown anymore (hopefully)
[friendica.git] / boot.php
index c6cfde0071e7de1921839209982a7af2da0d9247..5db214c9f3f2bb7eb08527d2390fcae817800a31 100644 (file)
--- 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)) {