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

Shawwal month not return from moment hijri (2022) #79

Open
MasterMorsy opened this issue May 12, 2022 · 2 comments
Open

Shawwal month not return from moment hijri (2022) #79

MasterMorsy opened this issue May 12, 2022 · 2 comments

Comments

@MasterMorsy
Copy link

When I try to print the current month's name which is Shawwal, it always returns Ramadan this happened only in the 2022 year if I try past or next year it works fine

moment().add(1, "year").startOf("month").format("iMMMM")

@azizoid
Copy link

azizoid commented Jun 4, 2022

It got broken to me too

@diana96alazzam
Copy link

I think you need to use iMonth instead of month.

I was facing a similar issue.
When I try to get the start of the current Hijri month, it's getting the start of current Gregorian month which is the first of May. Then it gets the equivalent of that day in Hijri calendar which is in Shawwal and not Thul-Qi’dah as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants