Robert Marshall 9 年 前
コミット
22f7489b70
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Database/TemperatureReadingRepository.php

+ 1 - 1
Database/TemperatureReadingRepository.php

@@ -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)