From f80ed3946fa631ef76cba8cf5ef876cb392cc4ac Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 1 Jul 2026 08:41:11 +0000 Subject: [PATCH] Fix monthly visit date range end date --- adm/visit_month.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adm/visit_month.php b/adm/visit_month.php index 390419f1c..ddbae749f 100644 --- a/adm/visit_month.php +++ b/adm/visit_month.php @@ -58,6 +58,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { if (count($arr)) { foreach ($arr as $key=>$value) { $count = $value; + $last_date = date('Y-m-t', strtotime($key.'-01')); $rate = ($count / $sum_count * 100); $s_rate = number_format($rate, 1); @@ -66,7 +67,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { ?> - +
@@ -91,4 +92,4 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {