diff --git a/p3k/Weather.php b/p3k/Weather.php index e28d918..c77c71c 100644 --- a/p3k/Weather.php +++ b/p3k/Weather.php @@ -63,10 +63,7 @@ class Weather { 'unit' => '%' ]; - $tz = new DateTimeZone($data->timezone); - $now = new DateTime(); - $now->setTimeZone($tz); - $offset = $now->format('Z')/3600; + $offset = $data->timezone; $weather['timezone']['name'] = $sunny['timezone']; $weather['timezone']['offset'] = $offset;