Skip to content

Commit

Permalink
Fix last third name!
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Jul 17, 2022
1 parent c10f62a commit 1e0b5bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PrayerTimes/PrayerTimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PrayerTimes
const ISHA = 'Isha';
const MIDNIGHT = 'Midnight';
const FIRST_THIRD = 'Firstthird';
const SECOND_THIRD = 'Secondthird';
const LAST_THIRD = 'Lastthird';

/**
* Schools that determine the Asr shadow for the purpose of this class
Expand Down Expand Up @@ -265,7 +265,7 @@ private function computeTimes()
$diff = ($this->midnightMode == self::MIDNIGHT_MODE_JAFARI) ? $this->timeDiff($times[self::SUNSET], $times[self::FAJR]) : $this->timeDiff($times[self::SUNSET], $times[self::SUNRISE]);
$times[self::MIDNIGHT] = $times[self::SUNSET] + $diff / 2;
$times[self::FIRST_THIRD] = $times[self::SUNSET] + $diff / 3;
$times[self::SECOND_THIRD] = $times[self::SUNSET] + 2 * ($diff / 3);
$times[self::LAST_THIRD] = $times[self::SUNSET] + 2 * ($diff / 3);

// If our method is Moonsighting, reset the Fajr and Isha times
if ($this->method == Method::METHOD_MOONSIGHTING) {
Expand Down

0 comments on commit 1e0b5bb

Please sign in to comment.