Skip to content

Commit

Permalink
bug fix 1443 Shia year
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpcoder committed Apr 10, 2022
1 parent 89f732f commit 5990bcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Calendars/ShiaCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function julianDayToDate($julianDay)

$datetime = new DateTime($year, $month, $day, $time->hour, $time->minute, $time->second);

return $datetime;;
return $datetime;
}

public function dateToJulianDay($year, $month, $day, $hour, $minute, $second)
Expand Down Expand Up @@ -83,7 +83,8 @@ public function daysInMonth($year, $month)
1440 => [30, 29, 30, 30, 30, 29, 29, 30, 29, 30, 29, 29],
1441 => [29, 30, 29, 30, 30, 29, 30, 30, 29, 30, 29, 30],
1442 => [29, 29, 30, 29, 30, 29, 30, 30, 29, 30, 30, 29],
1443 => [29, 30, 30, 29, 29, 30, 29, 29, 30, 29, 30, 30],
1443 => [29, 30, 30, 29, 29, 30, 29, 30, 29, 30, 30, 29]

];

if ($month < 1 || $month > 12) {
Expand Down

0 comments on commit 5990bcf

Please sign in to comment.