Skip to content

Fix daysOfWeekDisabled#37

Open
alaamebrahim wants to merge 1 commit into
balbarak:masterfrom
alaamebrahim:master
Open

Fix daysOfWeekDisabled#37
alaamebrahim wants to merge 1 commit into
balbarak:masterfrom
alaamebrahim:master

Conversation

@alaamebrahim

Copy link
Copy Markdown

daysOfWeekDisabled not working right now.
This fix will get it to work

daysOfWeekDisabled not working right now.
This fix will get it to work

@Mo7mud Mo7mud left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause daysOfWeekDisabled not to work in Hijri mode
The fix is to find this line:

     if (!isValid(currentDate, 'days')) {

and change it to:

     if (!isValid(currentDate, 'd')) {

I fixed it already in my fork

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

Successfully merging this pull request may close these issues.

2 participants