From 0b8e2f81a9f184ec415b82bf51e5e9889a26c19c Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Wed, 3 Sep 2025 17:46:36 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=BE=20MR=20-=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BB=D0=B8?= =?utf8?q?=D1=88=D0=BD=D0=B5=D0=B5=20=D0=B8=D0=B7=20=D0=B4=D1=80=D1=83?= =?utf8?q?=D0=B3=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/products1c-nomenclature-actuality/index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/erp24/views/products1c-nomenclature-actuality/index.php b/erp24/views/products1c-nomenclature-actuality/index.php index 734d0391..6aa70cef 100644 --- a/erp24/views/products1c-nomenclature-actuality/index.php +++ b/erp24/views/products1c-nomenclature-actuality/index.php @@ -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'); -- 2.39.5