-
Notifications
You must be signed in to change notification settings - Fork 3.4k
week number of strftime("%U") and %W wrong #16156
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
Comments
The weeknumber for
|
This was referenced Mar 8, 2022
tiran
added a commit
to tiran/emscripten
that referenced
this issue
Mar 13, 2022
Derive the week number %U (first Sunday as the first day of week 01) and %W (first Monday as the first day of week 01) from tm_yday and tm_wday fields. The new implementation uses the same algorithm as musl libc and glibc. See: emscripten-core#16156
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Emscripten's strftime() has an off-by-one error for week number with Sunday as first day of a week.
Version of emscripten/emsdk:
reproducer
output
python output
The text was updated successfully, but these errors were encountered: