-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[libc] comparing with glibc for ctime, llvm implementation has an offset by 1 hour #109892
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
Labels
Comments
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Sep 28, 2024
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Sep 28, 2024
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Dec 23, 2024
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Dec 26, 2024
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Dec 26, 2024
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Jan 1, 2025
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Jan 3, 2025
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Jan 16, 2025
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Jan 31, 2025
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Feb 12, 2025
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
zimirza
pushed a commit
to zimirza/llvm-project
that referenced
this issue
Apr 22, 2025
This is an implementation of localtime. Closes llvm#107597 and llvm#109892
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
main
branch, not released version:For
t=0
, glibc's ctime returnsThu Jan 1 01:00:00 1970\n
, while llvm's ctime returnsThu Jan 1 00:00:00 1970\n
.For
t=2147483647
, glibc's ctime returnsTue Jan 19 04:14:07 2038\n
, while llvm's ctime returnsTue Jan 19 03:14:07 2038\n
.It might be better to be consistent with glibc's implementation for compatibility reasons.
The text was updated successfully, but these errors were encountered: