Skip to content

Commit

Permalink
Add timezones only if the format is not iso8601 for calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Oct 21, 2023
1 parent f06c58b commit be32969
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/Utils/PrayerTimesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ private static function calculateTimings(DateTime $d, PrayerTimes $pt, ?array $t
$pt = self::applyMethodSpecificTuning($pt, $tune, $d, $adjustment, $methodSettings);
$timings = $pt->getTimes($d, $latitude, $longitude, null, $latitudeAdjustmentMethod, $midnightMode, $timeFormat);

return Timezone::addTimezoneAbbreviation($timings, $d);
if ($timeFormat !== PrayerTimes::TIME_FORMAT_ISO8601) {
return Timezone::addTimezoneAbbreviation($timings, $d);
}

return $timings;
}

}

0 comments on commit be32969

Please sign in to comment.