riverbed / steelscript

SteelScript is a collection of libraries and scripts in Python for interacting with Riverbed solutions and appliances, and other network infrastructure devices
https://support.riverbed.com/apis/steelscript
Other
14 stars 10 forks source link

Fix warning "datetime.datetime.utcfromtimestamp() is deprecated" with Python 3.12 #28

Closed gwenblum closed 7 months ago

gwenblum commented 10 months ago

/src/steelscript/steelscript/common/timeutils.py:32: 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). EPOCHORDINAL = datetime.utcfromtimestamp(0).toordinal()

gwenblum commented 7 months ago

31