subMonth
This commit is contained in:
parent
365bcc8dde
commit
0c7e4b862e
@ -88,7 +88,7 @@ class FlowPoolSync extends Command
|
|||||||
|
|
||||||
if ($i !== count($settings) - 1) {
|
if ($i !== count($settings) - 1) {
|
||||||
$nextMonth = substr_replace($settings[$i+1]['year_month'], '-', 4, 0);
|
$nextMonth = substr_replace($settings[$i+1]['year_month'], '-', 4, 0);
|
||||||
$end_at = Carbon::parse($nextMonth)->endOfMonth()->format('Y-m-d H:i:s');
|
$end_at = Carbon::parse($nextMonth)->subMonth()->endOfMonth()->format('Y-m-d H:i:s');
|
||||||
} else {
|
} else {
|
||||||
$end_at = '3000-01-31 23:59:59';
|
$end_at = '3000-01-31 23:59:59';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user