Browse code

Include today's slots ind reservation models findAllFuture method

Benjamin Roth authored on04/09/2023 16:21:29
Showing1 changed files
... ...
@@ -26,7 +26,8 @@ class WeinanlieferungReservationModel extends Model
26 26
     public static function findAllFuture(array $arrOptions=array())
27 27
     {
28 28
         $t = static::$strTable;
29
-        $time = Date::floorToMinute();
29
+        $Date = new Date();
30
+        $time = $Date->dayBegin;
30 31
 
31 32
         return static::findBy(array("pid IN (SELECT tl_vr_wa_slot.id FROM tl_vr_wa_slot WHERE tl_vr_wa_slot.id=tl_vr_wa_reservation.pid AND tl_vr_wa_slot.time >= ?)"), $time, $arrOptions);
32 33
     }