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

feat: change weekend days, fixes #283 #286

Closed

Conversation

ghiscoding
Copy link
Contributor

@ghiscoding ghiscoding commented Aug 8, 2024

setting to allow changing weekend days, for example Friday/Saturday instead of Saturday/Sunday as per Discussion #283

image

However, it's currently broken when enabling iso8601: true, that would have to be fixed but I don't have more time to look into this. There's also probably a lot more code that calculate days/weekends somewhere else, so it's quite possible that I didn't cover everything. I assume that the iso8601 could probably be ignored but we would probably also need another setting to know which day is the starting (for example start on Sunday or Monday or even Tuesday)

image

@ghiscoding ghiscoding marked this pull request as draft August 8, 2024 05:38
@ghiscoding
Copy link
Contributor Author

ghiscoding commented Aug 8, 2024

This PR could be closed if not interested, I don't have time to work further on this anyway. It was just a quick test to see if what was asked in Discussion #283 is even possible. It kinda is possible (as shown above), but I'm not sure if you really would want to provide such feature... so feel free to close (or improve the PR and implement it as you see fit). Personally I would have preferred a setting like weekDayStart that could be anywhere from 0 to 6 instead of using iso8601, but changing the code at this point would be a breaking change, unless we support both which might be a bit tricky.

Cheers

@uvarov-frontend uvarov-frontend marked this pull request as ready for review August 17, 2024 07:06
@johanrd
Copy link
Contributor

johanrd commented Oct 22, 2024

@ghiscoding @uvarov-frontend this is great! thanks for doing an exploration on this:)

@uvarov-frontend
Copy link
Owner

Implemented in v3.0.0 #293

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.

3 participants