Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86bbe2c31a |
+3
-1
@@ -49,7 +49,9 @@ class ApiHandler implements ApiHandlerInterface
|
|||||||
|
|
||||||
if (! empty($json['forecast']) ) {
|
if (! empty($json['forecast']) ) {
|
||||||
foreach($json['forecast'] as &$forecast) {
|
foreach($json['forecast'] as &$forecast) {
|
||||||
$forecast['date'] = $this->adjustTimezone($forecast['date']);
|
if ($forecast['date'] ?? false) {
|
||||||
|
$forecast['date'] = $this->adjustTimezone($forecast['date']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($attribute instanceof Collection) {
|
if ($attribute instanceof Collection) {
|
||||||
|
|||||||
Reference in new issue
Block a user