Skip to content

Commit 9be88a8

Browse files
authored
Merge pull request #19 from hassanhe/patch-1
Fix: recalculate does not update the year
2 parents adde6ad + ffce1a1 commit 9be88a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Date.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ protected function recalculate()
382382
$this->julianDay = $julian;
383383
$this->day = $hijri->day;
384384
$this->month = $hijri->month;
385-
$this->day = $hijri->day;
385+
$this->year = $hijri->year;
386386

387387
return $this->fillValuesArray();
388388
}
@@ -653,4 +653,4 @@ public function __toString()
653653
return $this->format(static::$toStringFormat);
654654
}
655655

656-
}
656+
}

0 commit comments

Comments
 (0)