Skip to content
New issue

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

Update Hijri date when Carbon instance date changes #33

Closed
alhoqbani opened this issue Jul 27, 2017 · 0 comments
Closed

Update Hijri date when Carbon instance date changes #33

alhoqbani opened this issue Jul 27, 2017 · 0 comments

Comments

@alhoqbani
Copy link
Owner

When the date is changed using one of Carbon methods, e.g. addDays, the Hijri date does not change accordingly.

        $arD = ArUtil::date()->arCreateFromDate(1438, 10, 15);
	    
        $arD->addDays(10);
	    
	echo $arD->arDay // 15 <- should be 25
alhoqbani added a commit that referenced this issue Jul 27, 2017
method

When the timestamp is changed using any carbon methods to add or
subtract time, the hijri date will be updated as well.
This will close #33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant