diff --git a/Cmfcmf/OpenWeatherMap/Util/City.php b/Cmfcmf/OpenWeatherMap/Util/City.php index 3562ec3..5264bc7 100644 --- a/Cmfcmf/OpenWeatherMap/Util/City.php +++ b/Cmfcmf/OpenWeatherMap/Util/City.php @@ -67,7 +67,7 @@ public function __construct($id, $name = null, $lat = null, $lon = null, $countr $this->name = isset($name) ? (string)$name : null; $this->country = isset($country) ? (string)$country : null; $this->population = isset($population) ? (int)$population : null; - $this->timezone = isset($timezoneOffset) ? new \DateTimeZone(self::timezoneOffsetInSecondsToHours($timezoneOffset)) : null; + $this->timezone = isset($timezoneOffset) ? new \DateTimeZone(self::timezoneOffsetInSecondsToHours((int)$timezoneOffset)) : null; parent::__construct($lat, $lon); }