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 timestamp query parameter parsing #22

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Conversation

0237h
Copy link
Collaborator

@0237h 0237h commented Oct 18, 2023

The implemented behavior treats all input dates as UTC dates to be consistent with how blockchains stores their timestamp values.

By default the Clickhouse DB will store the timestamps using the YYYY-MM-DDTHH:MM:SS format, missing timezone information. As such the new behavior will match queries passing this format whereas previously they would have been shifted by the user's UTC difference.

Closes #20

The implemented behavior treats all input dates as UTC dates to be
consistent with how blockchains stores their timestamp values.

By default the Clickhouse DB will store the timestamps using the
`YYYY-MM-DDTHH:MM:SS` format, missing timezone information. As such
the new behavior will match queries passing this format whereas
previously they would have been shifted by the user's UTC difference.
@0237h 0237h temporarily deployed to dev-test October 18, 2023 17:19 — with GitHub Actions Inactive
@0237h 0237h temporarily deployed to dev-test October 18, 2023 17:27 — with GitHub Actions Inactive
@0237h 0237h temporarily deployed to dev-test October 18, 2023 18:03 — with GitHub Actions Inactive
@0237h 0237h merged commit 5b9602b into main Oct 18, 2023
2 checks passed
@0237h 0237h deleted the fix/timestamp-query-parameter branch October 18, 2023 18:05
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.

Zod date parsing for timestamp parameter does not work properly when timezone information is missing
1 participant