Commit 7f2ff9d3 authored by Youcef Aouad's avatar Youcef Aouad
Browse files

time display ald fixed

No related merge requests found
Pipeline #56579 passed with stages
in 1 minute and 3 seconds
Showing with 4 additions and 3 deletions
+4 -3
...@@ -50,7 +50,7 @@ class LateralContributionAdisTS(SQLSubModel): ...@@ -50,7 +50,7 @@ class LateralContributionAdisTS(SQLSubModel):
self._end_kp = 0.0 self._end_kp = 0.0
self._data = [] self._data = []
self._header = ["time", "rate"] self._header = ["time", "rate"]
self._types = [float, float] self._types = [self.time_convert, float]
LateralContributionAdisTS._id_cnt = max( LateralContributionAdisTS._id_cnt = max(
LateralContributionAdisTS._id_cnt + 1, self.id) LateralContributionAdisTS._id_cnt + 1, self.id)
......
...@@ -23,7 +23,8 @@ from datetime import date, time, datetime, timedelta ...@@ -23,7 +23,8 @@ from datetime import date, time, datetime, timedelta
from tools import ( from tools import (
trace, timer, trace, timer,
timestamp_to_old_pamhyr_date, timestamp_to_old_pamhyr_date,
old_pamhyr_date_to_timestamp old_pamhyr_date_to_timestamp,
timestamp_to_old_pamhyr_date_adists
) )
from View.Tools.PamhyrTable import PamhyrTableModel from View.Tools.PamhyrTable import PamhyrTableModel
...@@ -69,7 +70,7 @@ class TableModel(PamhyrTableModel): ...@@ -69,7 +70,7 @@ class TableModel(PamhyrTableModel):
value = f"{v:.4f}" value = f"{v:.4f}"
elif self._data.header[column] == "time": elif self._data.header[column] == "time":
if self._opt_data == "time": if self._opt_data == "time":
value = timestamp_to_old_pamhyr_date(int(v)) value = timestamp_to_old_pamhyr_date_adists(int(v))
else: else:
value = str(datetime.fromtimestamp(v)) value = str(datetime.fromtimestamp(v))
else: else:
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment