From 5990bcff12e18cbfc7c61a3886e1aca2e76dd206 Mon Sep 17 00:00:00 2001 From: Mahdi Bagheri Date: Mon, 11 Apr 2022 03:11:45 +0430 Subject: [PATCH] bug fix 1443 Shia year --- src/Calendars/ShiaCalendar.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Calendars/ShiaCalendar.php b/src/Calendars/ShiaCalendar.php index 5d36d1b..684067e 100644 --- a/src/Calendars/ShiaCalendar.php +++ b/src/Calendars/ShiaCalendar.php @@ -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) @@ -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) {