fix ne storage
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user