]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Правки по MR - убрал лишнее из другой задачи
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 3 Sep 2025 14:46:36 +0000 (17:46 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 3 Sep 2025 14:46:36 +0000 (17:46 +0300)
erp24/views/products1c-nomenclature-actuality/index.php

index 734d03917c2f852d1410003fd6a09826c7b49d3c..6aa70cef4add5628d462e61ea1c37b9cd54a95e1 100644 (file)
@@ -25,11 +25,8 @@ $this->registerJsFile('/js/products1cNomenclatureActuality/index.js', ['position
 function monthList()
 {
     $list = [];
-    $tz  = new DateTimeZone('Europe/Moscow');
-    $now = new DateTime('now', $tz);
-    $start = (clone $now)->modify('first day of january last year');
-    $end  = (clone $now)->modify('last day of december next year');
-
+    $start = new DateTime('2025-01');
+    $end = new DateTime('2026-12');
     while ($start <= $end) {
         $key = $start->format('Y-m');
         $list[$key] = $start->format('Y‑m');