GoogleCloudPlatform / alloydb-python-connector

A Python library for connecting securely to your AlloyDB instances.
Apache License 2.0
28 stars 7 forks source link

chore: update `utcnow` to `now(timezone.utc)` #189

Closed jackwotherspoon closed 8 months ago

jackwotherspoon commented 8 months ago

In Python 3.12 the use of utcnow() is deprecated. https://discuss.python.org/t/deprecating-utcnow-and-utcfromtimestamp/26221

This also updates the timestamps from naive timestamps to aware timestamps.