Skip to content

Commit

Permalink
Merge pull request #93 from reza-akbari/master
Browse files Browse the repository at this point in the history
fix number of days in last month of leap year
  • Loading branch information
Morteza Parvini authored Dec 16, 2019
2 parents 695eb6b + 64fb5a2 commit ae040b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalendarUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public static function date($format, $stamp = false, $timezone = null)
$v = $jMonth;
break;
case 't':
$v = ($jMonth == 12) ? 29 : (($jMonth > 6 && $jMonth != 12) ? 30 : 31);
$v = ($jMonth == 12) ? (self::isLeapJalaliYear($jYear) ? 30 : 29) : ($jMonth > 6 ? 30 : 31);
break;
//Year
case 'L':
Expand Down

0 comments on commit ae040b5

Please sign in to comment.