Skip to content
Snippets Groups Projects
Commit 0df105bb authored by David Trattnig's avatar David Trattnig
Browse files

fix: use UTC timestamp for date ops

parent 2a7d75e5
No related branches found
No related tags found
1 merge request!35ORM-less scheduling
...@@ -52,7 +52,7 @@ class SimpleUtil: ...@@ -52,7 +52,7 @@ class SimpleUtil:
(String): Displaying the time (String): Displaying the time
""" """
return datetime.datetime.fromtimestamp(timestamp).strftime("%H:%M:%S") return datetime.datetime.utcfromtimestamp(timestamp).strftime("%H:%M:%S")
@staticmethod @staticmethod
def round_seconds(dt: datetime) -> datetime: def round_seconds(dt: datetime) -> datetime:
......
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