Преглед на файлове

Corrected a small bug when calculating the weeks start and end times.

Adam Day преди 9 години
родител
ревизия
2e099a38a3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      application/models/weeklyReportModel.php

+ 1 - 1
application/models/weeklyReportModel.php

@@ -52,7 +52,7 @@ class weeklyReportModel extends Staple_Model
         $ret['start']['year'] = $dto->format('Y');
 
         //Week End
-        $dto->modify('+6 days')->setTime(23,59,59);
+        $dto->modify('+6 days')->setTime(24,0,0);
         $ret['end']['unix'] = $dto->format('U');
         $ret['end']['formatted'] = $dto->format('Y-m-d h:i:s');
         $ret['end']['dayName'] = $dto->format('l');