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
It may be a good idea to use tz-aware datetimes now.
To Reproduce
E.g. run AsyncFirebaseClient.build_apns_config(...)
.venv/lib/python3.12/site-packages/async_firebase/client.py:232: 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).
"apns-expiration": str(int(datetime.utcnow().timestamp()) + ttl),
Expected behavior
No warnings are logged.
Desktop:
OS: Ubuntu 22
Browser Not relevant
Package Version: 3.8.0
Smartphone:
Not relevant
The text was updated successfully, but these errors were encountered:
Describe the bug
Python 3.12 deprecated usage of
datetime.utcnow()
:It may be a good idea to use tz-aware datetimes now.
To Reproduce
E.g. run
AsyncFirebaseClient.build_apns_config(...)
Expected behavior
No warnings are logged.
Desktop:
Smartphone:
The text was updated successfully, but these errors were encountered: