Skip to content

Commit

Permalink
Merge pull request #19 from hassanhe/patch-1
Browse files Browse the repository at this point in the history
Fix: recalculate does not update the year
  • Loading branch information
aboudeh87 authored Sep 2, 2020
2 parents adde6ad + ffce1a1 commit 9be88a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ protected function recalculate()
$this->julianDay = $julian;
$this->day = $hijri->day;
$this->month = $hijri->month;
$this->day = $hijri->day;
$this->year = $hijri->year;

return $this->fillValuesArray();
}
Expand Down Expand Up @@ -653,4 +653,4 @@ public function __toString()
return $this->format(static::$toStringFormat);
}

}
}

0 comments on commit 9be88a8

Please sign in to comment.