We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hijri date will skip 1 day when the correction value is greater than 1 and the Hijri month end on the 29th instead of the 30th.
Here's an example: I hardcoded the date so the issue can be reproduced easily. correction = 0
$Arabic = new \ArPHP\I18N\Arabic(); $g_date = strtotime("2022-04-02"); $hijri = $Arabic->date('j F', $g_date, 0);
output: "29 شعبان"
correction = 1
$hijri = $Arabic->date('j F', $g_date, 1);
output: "30 شعبان"
correction = 2
$hijri = $Arabic->date('j F', $g_date, 2);
output: "2 رمضان"
The text was updated successfully, but these errors were encountered:
Thanks for finding this bug and fixing it!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hijri date will skip 1 day when the correction value is greater than 1 and the Hijri month end on the 29th instead of the 30th.
Here's an example:
I hardcoded the date so the issue can be reproduced easily.
correction = 0
output: "29 شعبان"
correction = 1
output: "30 شعبان"
correction = 2
output: "2 رمضان"
The text was updated successfully, but these errors were encountered: