fix ne storage

This commit is contained in:
Romulus21
2026-03-06 12:07:18 +01:00
parent 0419d64fa1
commit 02f7efa745
2 changed files with 18 additions and 18 deletions

View File

@@ -121,7 +121,7 @@ class RainfallController extends Controller
$diff = now()->diffInMonths($firstOfLastYear);
$result = [];
for ($i = $diff; $i >= 0; $i--) {
for ($i = -$diff; $i >= 0; $i--) {
$date = now()->subMonths($i);
$month = $date->month;
$firstOfMonth = now()->subMonths($i)->firstOfMonth();