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

refactor: use system timezone

parent c73d772b
No related branches found
No related tags found
1 merge request!35ORM-less scheduling
...@@ -54,7 +54,7 @@ class SimpleUtil: ...@@ -54,7 +54,7 @@ class SimpleUtil:
(datetime): The `datetime` object. (datetime): The `datetime` object.
""" """
if timestamp: if timestamp:
return datetime.datetime.fromtimestamp(timestamp, datetime.UTC) return datetime.datetime.fromtimestamp(timestamp)
return None return None
@staticmethod @staticmethod
...@@ -69,7 +69,7 @@ class SimpleUtil: ...@@ -69,7 +69,7 @@ class SimpleUtil:
(String): Displaying the time (String): Displaying the time
""" """
return datetime.datetime.fromtimestamp(timestamp, datetime.UTC).strftime("%H:%M:%S") return datetime.datetime.fromtimestamp(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.
Please register or to comment