Skip to content
Snippets Groups Projects
Commit e6ad2468 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

to_datetime: fix deprecation warning

parent f3f52f1e
No related branches found
No related tags found
1 merge request!286Add mask to Info object
...@@ -215,7 +215,8 @@ def to_datetime(date): ...@@ -215,7 +215,8 @@ def to_datetime(date):
if timestamp < 0: if timestamp < 0:
return _BASE_DATETIME + datetime.timedelta(seconds=timestamp) return _BASE_DATETIME + datetime.timedelta(seconds=timestamp)
return datetime.datetime.utcfromtimestamp(timestamp) tz = datetime.timezone.utc
return datetime.datetime.fromtimestamp(timestamp, tz).replace(tzinfo=None)
def strip_time(xdata, grid): def strip_time(xdata, grid):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment