Skip to content

TimeScoped.is_active: drop deprecated utcnow#197

Closed
c-tonneslan wants to merge 1 commit into
openstates:mainfrom
c-tonneslan:chore/utcnow-models-common
Closed

TimeScoped.is_active: drop deprecated utcnow#197
c-tonneslan wants to merge 1 commit into
openstates:mainfrom
c-tonneslan:chore/utcnow-models-common

Conversation

@c-tonneslan

Copy link
Copy Markdown

datetime.utcnow() warns under 3.12 and is on track for removal. Since the value is only used as an ISO date for string comparison, a timezone-aware now(timezone.utc) works the same.

datetime.utcnow() emits a DeprecationWarning on 3.12 and is slated for
removal. The date is only used for an ISO-format comparison, so a
timezone-aware now() works the same.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
@c-tonneslan

Copy link
Copy Markdown
Author

Duplicate of the model change already in #194. Closing.

@c-tonneslan c-tonneslan deleted the chore/utcnow-models-common branch May 18, 2026 13:17
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