Skip to content

Commit

Permalink
Fix ISO issue after integration test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Jul 13, 2020
1 parent a77af5c commit 97ed870
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PrayerTimes/PrayerTimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 97ed870

Please sign in to comment.