You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Gui-FernandesBR (via GitHub)" <gi...@apache.org> on 2023/10/29 22:05:08 UTC
Re: [I] datetime.utcnow and datetime.utcfromtimestamp are deprecated in Python 3.12 [airflow]
Gui-FernandesBR commented on issue #32344:
URL: https://github.com/apache/airflow/issues/32344#issuecomment-1784238479
Any updates on this one?
Python 3.12 was released a few weeks ago.
The warning persists:
```txt
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
EPOCH = datetime.datetime.utcfromtimestamp(0)
```
This happens in this file of my environment (hope this helps): .venv\Lib\site-packages\dateutil\tz\tz.py
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org