From 97ed870da2d8b42460fa97b9f449b684866a6003 Mon Sep 17 00:00:00 2001 From: Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram Date: Mon, 13 Jul 2020 17:47:35 +0400 Subject: [PATCH] Fix ISO issue after integration test failure --- src/PrayerTimes/PrayerTimes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }