diff --git a/src/PrayerTimes/PrayerTimes.php b/src/PrayerTimes/PrayerTimes.php index 935da41..34e696f 100644 --- a/src/PrayerTimes/PrayerTimes.php +++ b/src/PrayerTimes/PrayerTimes.php @@ -304,10 +304,9 @@ private function getFormattedTime($time, $format) $hour = ($format == self::TIME_FORMAT_24H) ? $this->twoDigitsFormat($hours) : (($hours+ 12 -1)% 12+ 1); $twoDigitMinutes = $this->twoDigitsFormat($minutes); - // Create temporary date object - $date = clone $this->date; - if ($format == self::TIME_FORMAT_ISO8601) { + // Create temporary date object + $date = clone $this->date; $date->setTime($hours, $twoDigitMinutes); return $date->format(DateTime::ATOM); }