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

In date.DateParamToEpoch handle tz parameter #853

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

cbowman0
Copy link
Contributor

The current implementation does not respect the tz query parameter.

The check of the err value of time.LoadLocation is backwards, so it only attempts to use the query tz when it's invalid. Flip that logic to set the tz value when it's a valid TZ Identifier (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).

Adjust all places that compute a Unix timestamp to respect the query tz parameter.

Adjust tests to do date tests with a TZ offset.

@Civil Civil merged commit 7fe58db into go-graphite:main Jan 15, 2025
3 of 6 checks passed
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.

3 participants