From: Alexander Smirnov Date: Thu, 8 Aug 2024 12:48:17 +0000 (+0300) Subject: [ERP-90] Исправлено 50-59 X-Git-Tag: 1.4~39^2~1 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e9ddaa6c7dac077e2edf0d288dd2af8130796b94;p=erp24_rep%2Fyii-erp24%2F.git [ERP-90] Исправлено 50-59 --- diff --git a/erp24/services/MotivationService.php b/erp24/services/MotivationService.php index 1566477b..c7798002 100644 --- a/erp24/services/MotivationService.php +++ b/erp24/services/MotivationService.php @@ -336,7 +336,7 @@ class MotivationService foreach (range(1, 5) as $ind) { $weekStart = date("Y-m-d 00:00:00", strtotime("+" . (($ind - 1) * 7) . ' days', strtotime($monthStart))); - $weekEnd = date("Y-m-d 23:50:50", strtotime("+" . ($ind * 7 - 1) . ' days', strtotime($monthStart))); + $weekEnd = date("Y-m-d 23:59:59", strtotime("+" . ($ind * 7 - 1) . ' days', strtotime($monthStart))); if ($weekEnd > $monthEnd) { $weekEnd = $monthEnd; }