Skip to content
Snippets Groups Projects
Commit 3f1267bd authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

PyqtGraph. Display graphs time axis in UTC (instead of local time)

parent 1d4e9798
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ class TimeAxisItem(pg.AxisItem):
self.enableAutoSIPrefix(False)
def tickStrings(self, values, scale, spacing):
return [datetime.datetime.fromtimestamp(value).strftime("%H:%M:%S") for value in values]
return [datetime.datetime.fromtimestamp(value, tz=datetime.timezone.utc).strftime("%H:%M:%S") for value in values]
def highlight_row(table: QTableWidget, highlighted_row_id: int,
......
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