Skip to content

fix: Use named parameter for _to_datetime to pass default_tz#1891

Merged
favilo merged 1 commit intoelastic:masterfrom
favilo:timezone-fix
Nov 18, 2024
Merged

fix: Use named parameter for _to_datetime to pass default_tz#1891
favilo merged 1 commit intoelastic:masterfrom
favilo:timezone-fix

Conversation

@favilo
Copy link
Copy Markdown
Contributor

@favilo favilo commented Nov 13, 2024

I noticed in the PST timezone, tests/track/loader_test.py::TestTemplateRender::test_render_simple_template was failing because the default timezone wasn't getting set correctly.

@favilo favilo requested a review from inqueue November 13, 2024 20:52
@favilo favilo changed the title fix: Use named parameter for _to_datetime to pass in all timezones fix: Use named parameter for _to_datetime to pass default_tz Nov 13, 2024
Copy link
Copy Markdown
Member

@inqueue inqueue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@favilo
Copy link
Copy Markdown
Contributor Author

favilo commented Nov 13, 2024

Sigh, can't merge until #1890 can fix the lints

I noticed in the PST timezone,
tests/track/loader_test.py::TestTemplateRender::test_render_simple_template
was failing because the default timezone wasn't getting set correctly.
@favilo favilo merged commit 8dd1189 into elastic:master Nov 18, 2024
@favilo favilo deleted the timezone-fix branch November 18, 2024 19:44
@dpifke-elastic dpifke-elastic added the bug Something's wrong label Mar 28, 2025
@dpifke-elastic dpifke-elastic added this to the 2.12.0 milestone Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something's wrong

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants