From e20b0c8c02b8dbda382b2095fb3f2f926aa7eb0d Mon Sep 17 00:00:00 2001 From: Inverle Date: Mon, 1 Sep 2025 23:25:58 +0200 Subject: Fix displaying of current date in main statistics (#7892) Before image After image The current day is now included within statistics. The `-1` thing started happening after #7752 but I'm not sure whether the correct solution is to display the current day or just fix it in the JS For reference here's what the chart used to looked like: image --- app/Controllers/statsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controllers') diff --git a/app/Controllers/statsController.php b/app/Controllers/statsController.php index 5a7e9b79a..ddb6fcb34 100644 --- a/app/Controllers/statsController.php +++ b/app/Controllers/statsController.php @@ -85,7 +85,7 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController { $this->view->topFeed = $statsDAO->calculateTopFeed(); $last30DaysLabels = []; - for ($i = 0; $i < 30; $i++) { + for ($i = 0; $i < 31; $i++) { $last30DaysLabels[$i] = date('d.m.Y', strtotime((-30 + $i) . ' days') ?: null); } -- cgit v1.2.3