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
use timezone-aware API to avoid deprecated warning (datastax#1213)
before this change, when testing with cqlsh, we have warnings like:
```
<frozen importlib._bootstrap>:488: 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).
````
in this change, we replace the deprecated API with timezone-aware API,
to avoid this warning.
to keep the backward compatibility, `DateTime.to_python()` still
returns an offset-naive timestamp.
Signed-off-by: Kefu Chai <[email protected]>
0 commit comments