chore: replace deprecated datetime.utcnow() with datetime.now(UTC) (#114)

Closes #114

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-19 12:31:43 -05:00
parent cf0b1d1d1c
commit 9c19120444

View File

@ -19,7 +19,7 @@ and WP-09 (formula engine). Models and formula functions are imported lazily so
this module can be imported before those PRs merge.
"""
from datetime import datetime
from datetime import datetime, UTC
import logging
@ -170,7 +170,7 @@ def evaluate_card(
new_tier = _tier_from_value_fn(value, track)
# 58. Update card state (no tier regression)
now = datetime.utcnow()
now = datetime.now(UTC)
card_state.current_value = value
card_state.current_tier = max(card_state.current_tier, new_tier)
card_state.fully_evolved = card_state.current_tier >= 4