Skip to content

Commit

Permalink
fix utc
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Sep 23, 2024
1 parent 9427ecb commit a1a8921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/telit/generate_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def epoch_to_elasticsearch_date(epoch):
yyyy-MM-dd'T'HH:mm:ss.SSSZ
@rtype: string
"""
return datetime.datetime.fromtimestamp(epoch, tz=datetime.UTC).strftime(
return datetime.datetime.fromtimestamp(epoch, tz=datetime.timezone.utc).strftime(
"%Y-%m-%dT%H:%M:%S.%f")[:-3] + "Z"

def open_file_for_write(filename):
Expand Down

0 comments on commit a1a8921

Please sign in to comment.