- WIP on Forecast
This commit is contained in:
parent
9c70225a77
commit
86bbe2c31a
@ -49,8 +49,10 @@ class ApiHandler implements ApiHandlerInterface
|
||||
|
||||
if (! empty($json['forecast']) ) {
|
||||
foreach($json['forecast'] as &$forecast) {
|
||||
if ($forecast['date'] ?? false) {
|
||||
$forecast['date'] = $this->adjustTimezone($forecast['date']);
|
||||
}
|
||||
}
|
||||
|
||||
if ($attribute instanceof Collection) {
|
||||
$response = $response->withParsedBody($json['forecast']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user