Skip to content

fix: replace deprecated datetime.utcnow() with timezone-aware datetime.now()#30

Open
fazalpsinfo-cmyk wants to merge 1 commit into
vitorfranklin:mainfrom
fazalpsinfo-cmyk:fix/datetime-utcnow
Open

fix: replace deprecated datetime.utcnow() with timezone-aware datetime.now()#30
fazalpsinfo-cmyk wants to merge 1 commit into
vitorfranklin:mainfrom
fazalpsinfo-cmyk:fix/datetime-utcnow

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Replace deprecated datetime.utcnow() with timezone-aware datetime.now(timezone.utc).

Changes:

  • backend/app/models/game.py: Replace datetime.utcnow with lambda: datetime.now(timezone.utc) in SQLAlchemy column defaults and add timezone to imports

Fixes #14

https://buymeacoffee.com/muhamedfazalps

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.

datetime.utcnow() deprecation warning from SQLAlchemy model default

1 participant