From 0a74b5971b590bc56cd0749de53c8f4eeccbbb02 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 11 Jul 2024 15:39:02 +0300 Subject: [PATCH] =?utf8?q?=D0=92=D0=B5=D1=80=D0=BD=D1=83=D0=BB=20=D0=BF?= =?utf8?q?=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=20daysCnt=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api1/views/cron/domru-cams.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/api1/views/cron/domru-cams.php b/erp24/api1/views/cron/domru-cams.php index aaecfa18..98e15b64 100644 --- a/erp24/api1/views/cron/domru-cams.php +++ b/erp24/api1/views/cron/domru-cams.php @@ -22,8 +22,8 @@ foreach($revers as $cam_id => $name) { } -$daysCnt = 2; -if (!empty($_GET["daysCnt"])) $daysCnt = (int)$_GET["daysCnt"]; +$daysCnt = 1; +if (!empty($_GET["daysCnt"])) $daysCnt = (int)$_GET["daysCnt"] - 1; $date1 = date('Y-m-d', strtotime("-$daysCnt day", time())); $date2 = date('Y-m-d'); -- 2.39.5