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),
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: