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
Proposal:
Starting with Python 3.12 datetime.utcfromtimestamp will be deprecated in favor of the timezone aware datetime.fromtimestamp. https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestamp
AFAICT this only effects one instance in the active (excluding examples) code base and the fix should be pretty simple
Hi @bednar, Thanks for the reply! Usually I would be happy to open a PR for it. Please understand though, that I'm not willing to sign a CLA just for a one line change. Feel free to use my suggestion from above to contribute it yourself, though.
Proposal:
Starting with Python 3.12
datetime.utcfromtimestamp
will be deprecated in favor of the timezone awaredatetime.fromtimestamp
. https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestampAFAICT this only effects one instance in the active (excluding examples) code base and the fix should be pretty simple
influxdb-client-python/influxdb_client/client/write/point.py
Line 13 in 1ec64b7
Note:
datetime.utcnow()
will also be deprecated in favor ofdatetime.now(tz=timezone.utc)
but that's only used in examples or tests. https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcnowThe text was updated successfully, but these errors were encountered: