Skip to content

Convert naive datetime objects to UTC #68

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

Closed
wants to merge 3 commits into from

Conversation

kgodlewski
Copy link
Contributor

Assume that if tzinfo is not provided, the datetime object is in local timezone, and convert it to UTC.

Previously we would log datetimes as local timestamp, which resulted in incorrect data.

This is to be more consistent with other spots
Any `datetime` object passed to `log*` functions will be converted to
UTC prior to logging. If `tzinfo` is not provided, it is assumed to be
in local time.
@kgodlewski kgodlewski force-pushed the kg/handle-naive-timestamps branch from 7587969 to 106475d Compare November 4, 2024 15:34
@kgodlewski kgodlewski closed this Nov 4, 2024
@kgodlewski kgodlewski deleted the kg/handle-naive-timestamps branch November 6, 2024 15:02
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