|
@@ -19,7 +19,7 @@ class TemperatureReadingRepository extends BaseRepository implements ITemperatur
|
|
|
$prep=self::$PDO->prepare("SELECT temperature_id FROM temperature_log WHERE `timestamp`>=:from AND `timestamp`<=:to");
|
|
|
$prep->execute(array(
|
|
|
":from"=>$from->format('Y-m-d 00:00:00'),
|
|
|
- ":to"=>$to->format('Y-m-d 23:59:59')
|
|
|
+ ":to"=>$to->format('Y-m-d 00:00:00')
|
|
|
));
|
|
|
$results=$prep->fetchAll(PDO::FETCH_COLUMN);
|
|
|
foreach ($results as $id)
|