mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fixed start/end date filtering
This commit is contained in:
parent
1dbdc71d15
commit
b1ebf51c66
@ -9,9 +9,9 @@ trait IsoDateFormatter
|
||||
$dt = explode('-', $d);
|
||||
return (new \DateTime())
|
||||
->setDate(
|
||||
$start_date[0] ?? date('Y'),
|
||||
$start_date[1] ?? 1,
|
||||
$start_date[2] ?? 1
|
||||
$dt[0] ?? date('Y'),
|
||||
$dt[1] ?? 1,
|
||||
$dt[2] ?? 1
|
||||
)
|
||||
->format(\DateTimeInterface::ISO8601);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user