Skip to content

Fix Timestamp Bug#25

Merged
JanHolger merged 3 commits into
masterfrom
TimothyGillespie/fixTimestampBug
Apr 27, 2021
Merged

Fix Timestamp Bug#25
JanHolger merged 3 commits into
masterfrom
TimothyGillespie/fixTimestampBug

Conversation

@TimothyGillespie

Copy link
Copy Markdown
Contributor

This bug was caused by calling .toString() on timestamp when converting to sql. This apparently converts it to the local timezone and can be very critical bug.

It is fixed and verified now. I assume it did not show up in the CI because the timezone in the CI system timezone would be UTC.

Short version:
Timestamps were saved in the local time zone in MySQL databases. When retrieving them it assumed they were UTC.

@TimothyGillespie TimothyGillespie added the bug Something isn't working label Apr 3, 2021
@TimothyGillespie TimothyGillespie linked an issue Apr 3, 2021 that may be closed by this pull request
@JanHolger JanHolger merged commit bb1ad4a into master Apr 27, 2021
@JanHolger JanHolger deleted the TimothyGillespie/fixTimestampBug branch April 26, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testFields() test is too environment dependent still

2 participants