You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datetime.utcnow() is now deprecated in Python 3.12. It is used by the SQLAlchemy backend:
xxx/.venv/lib/python3.12/site-packages/flask_session/sqlalchemy/sqlalchemy.py:168: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
storage_expiration_datetime = datetime.utcnow() + session_lifetime
xxx/.venv/lib/python3.12/site-packages/flask_session/sqlalchemy/sqlalchemy.py:141: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
if record and (record.expiry is None or record.expiry <= datetime.utcnow()):
Happy to submit a PR given guidance on how timezones should be handled.
The text was updated successfully, but these errors were encountered:
datetime.utcnow()
is now deprecated in Python 3.12. It is used by the SQLAlchemy backend:Happy to submit a PR given guidance on how timezones should be handled.
The text was updated successfully, but these errors were encountered: