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

Fix edge case in strftime %V (ISO 8601 week number) #16494

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

tiran
Copy link
Contributor

@tiran tiran commented Mar 15, 2022

strftime() now returns correct week number 51 instead of 50 for
date 2018-12-17. Code is based on musl's strftime.c:week_num().

Signed-off-by: Christian Heimes christian@python.org

@tiran tiran force-pushed the strftime_weekday branch from 928475e to 0b82c76 Compare March 15, 2022 10:52
strftime() now returns correct week number *51* instead of *50* for
date 2018-12-17. Code is based on musl's ``strftime.c:week_num()``.

Signed-off-by: Christian Heimes <christian@python.org>
@tiran tiran force-pushed the strftime_weekday branch from 0b82c76 to 7125ad4 Compare March 15, 2022 12:41
@sbc100 sbc100 merged commit 43ad4ce into emscripten-core:main Mar 15, 2022
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