We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71bdb2e commit 12c2e7dCopy full SHA for 12c2e7d
.gitignore
@@ -1,4 +1,3 @@
1
/vendor
2
/.vagrant/
3
/ubuntu-xenial-16.04-cloudimg-console.log
4
-/.idea/
Cmfcmf/OpenWeatherMap/UVIndex.php
@@ -51,10 +51,10 @@ class UVIndex
51
*/
52
public function __construct($data, $lat = null, $lon = null)
53
{
54
- $utctz = new \DateTimeZone('UTC');
55
if (isset($data->dt)) {
56
$this->time = \DateTime::createFromFormat('U', $data->dt);
57
} else {
+ $utctz = new \DateTimeZone('UTC');
58
$this->time = new \DateTime($data->date_iso, $utctz);
59
}
60
$this->location = new Location($data->lat ?? $lat, $data->lon ?? $lon);
0 commit comments