Просмотр исходного кода

Fix tests not being counted on last day of date range

Alan Lam 7 лет назад
Родитель
Сommit
9961681bd3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      controllers/reports.php

+ 2 - 2
controllers/reports.php

@@ -190,8 +190,8 @@ if($submit) {
 				list($min_year, $min_month, $min_day) = explode("-", $date_start);
 				list($max_year, $max_month, $max_day) = explode("-", $date_end);
 
-				$min_unix = strtotime("{$date_start} UTC");
-				$max_unix = strtotime("{$date_end} UTC");
+				$min_unix = strtotime("{$date_start} 00:00:00 UTC");
+				$max_unix = strtotime("{$date_end} 23:59:59 UTC");
 
 				$date_range_label = date("d/m/Y", $min_unix) . " - " . date("d/m/Y", $max_unix);