Skip to content

Fixes #1530: Replace deprecated utcnow and utcfromtimestamp with timezone-aware datetime#1531

Open
jim-vl wants to merge 2 commits into
jschneier:masterfrom
jim-vl:fix/utcnow-deprecation-1530
Open

Fixes #1530: Replace deprecated utcnow and utcfromtimestamp with timezone-aware datetime#1531
jim-vl wants to merge 2 commits into
jschneier:masterfrom
jim-vl:fix/utcnow-deprecation-1530

Conversation

@jim-vl

@jim-vl jim-vl commented Aug 28, 2025

Copy link
Copy Markdown

Fixes #1530

Replaces all uses of 'datetime.utcnow()' and 'datetime.utcfromtimestamp()' with timezone-aware 'datetime.now(timezone.utc)' to address the deprecation warning.

Test added and updated.

This is my first PR, happy to receive feedback!

@jim-vl jim-vl force-pushed the fix/utcnow-deprecation-1530 branch from 8ff6f63 to 3bd4bab Compare August 28, 2025 20:43
@jim-vl jim-vl force-pushed the fix/utcnow-deprecation-1530 branch from 3bd4bab to 0fcb361 Compare August 28, 2025 20:45
@SoundWaveX81

Copy link
Copy Markdown

hi @jschneier could you take a look on this one? with the newer versions of Python this fix is becoming a priority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants