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(events): Account for project timezone in absolute range EventsQuery #25832

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Twixes
Copy link
Collaborator

@Twixes Twixes commented Oct 25, 2024

Problem

Reported in ZEN-19450: Absolute date ranges were always effectively treated as UTC in EventsQueryRunner. This was off for projects with a non-UTC timezone set.

Changes

We were using raw isoparse(), where relative_date_parse() already handles both absolute and relative datetimes correctly accounting for timezones. The fix is simply removing the needless isoparse.

How did you test this code?

Added a test case that fails on master and passes here.

@Twixes Twixes requested a review from a team October 25, 2024 17:09
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.

1 participant