|
@@ -18,8 +18,8 @@ class TemperatureReadingRepository extends BaseRepository implements ITemperatur
|
|
|
$readings=array();
|
|
|
$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 00:00:00')
|
|
|
+ ":from"=>$from->format('Y-m-d H:i:s'),
|
|
|
+ ":to"=>$to->format('Y-m-d H:i:s')
|
|
|
));
|
|
|
$results=$prep->fetchAll(PDO::FETCH_COLUMN);
|
|
|
foreach ($results as $id)
|