chore: replace deprecated datetime.utcnow() with datetime.now(UTC) #114
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#114
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
evolution_evaluator.pyline 173 usesdatetime.utcnow()which is deprecated in Python 3.12+ and scheduled for removal:Shows as 16 warnings when running the evolution test suite.
Fix
Location
app/services/evolution_evaluator.py:173Found during
Phase 1 smoke testing (2026-03-19)
PR #118 opens the fix: #118
Two-line change in
app/services/evolution_evaluator.py:from datetime import datetime→from datetime import datetime, UTCdatetime.utcnow()→datetime.now(UTC)Eliminates the 16
DeprecationWarninginstances from the evolution test suite.