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

[bugfix] weekyear setter handle dow #6193

Merged
merged 1 commit into from
Dec 23, 2023
Merged

[bugfix] weekyear setter handle dow #6193

merged 1 commit into from
Dec 23, 2023

Conversation

ichernev
Copy link
Contributor

Fixes #3944

The semantics of "locale weekday" are a bit iffy, but I guess it boils down to -- locale_weekday - dow is 0-6 (Mon-Sun).

The parser logic is a bit more involved and does it this way, so it makes more sense to obey it and fix the weekYear setter (instead of changing the semantics of weekday inside the rest of the (internal) code).

Copy link

CLA Not Signed

@ichernev
Copy link
Contributor Author

Merged in 50af8c2

@ichernev ichernev merged commit 50af8c2 into develop Dec 23, 2023
1 check failed
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.

weekYear(Number) jumps to the previous day of the week (and wraps around)
1 participant