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

Wrong timestamp in server logs #12

Open
John-Ted opened this issue Jul 30, 2023 · 0 comments
Open

Wrong timestamp in server logs #12

John-Ted opened this issue Jul 30, 2023 · 0 comments

Comments

@John-Ted
Copy link
Contributor

The timestamps in the server logs are not correct.

Example for ARM: -748823 Jan 1970 -19:-36:00.145
Example for x86: 28 Jul 2015 07:49:05.074

On ARM, the timestamps are wrong because the gettimeofday call does not function properly.
On x86, I tracked it down to this call to the redis version of localtime with the server.timezone parameter, which is subtracted from the timestamp. The server.timezone variable has the value 263675520, which corresponds to a shift of about 8 years, consistent with the change from 2023 to 2015.

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

No branches or pull requests

1 participant