Skip to content

Fix utcfromtimestamp deprecation warnings#215

Merged
StoicLoofah merged 6 commits intoggtracker:upstreamfrom
Andrene:upstream
Jan 5, 2026
Merged

Fix utcfromtimestamp deprecation warnings#215
StoicLoofah merged 6 commits intoggtracker:upstreamfrom
Andrene:upstream

Conversation

@Andrene
Copy link
Contributor

@Andrene Andrene commented Jan 1, 2026

Fixes #214

@Andrene
Copy link
Contributor Author

Andrene commented Jan 1, 2026

Test is failing due to a timestamp comparison.

Prior behavior of utcfromtimestamp was to generate a naive datetime, now datetimes are aware.

Is it desired to have the prior behavior?

@StoicLoofah
Copy link
Collaborator

Test is failing due to a timestamp comparison.

Prior behavior of utcfromtimestamp was to generate a naive datetime, now datetimes are aware.

Is it desired to have the prior behavior?

I think the new behavior is better. Can you update the test to match the new behavior? Thanks for jumping on this so quickly!

Copy link
Collaborator

@cclauss cclauss left a comment

Choose a reason for hiding this comment

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

Awesome!

Copy link
Collaborator

@StoicLoofah StoicLoofah left a comment

Choose a reason for hiding this comment

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

Good stuff. Thanks!

@StoicLoofah StoicLoofah merged commit cb60051 into ggtracker:upstream Jan 5, 2026
3 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.

DeprecationWarning: datetime.datetime.utcfromtimestamp()

3 participants