mirror of https://gitlab.com/pamhyr/pamhyr2
time display ald fixed
parent
57be80bcd4
commit
7f2ff9d341
|
|
@ -50,7 +50,7 @@ class LateralContributionAdisTS(SQLSubModel):
|
|||
self._end_kp = 0.0
|
||||
self._data = []
|
||||
self._header = ["time", "rate"]
|
||||
self._types = [float, float]
|
||||
self._types = [self.time_convert, float]
|
||||
|
||||
LateralContributionAdisTS._id_cnt = max(
|
||||
LateralContributionAdisTS._id_cnt + 1, self.id)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@ from datetime import date, time, datetime, timedelta
|
|||
from tools import (
|
||||
trace, timer,
|
||||
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
|
||||
|
|
@ -69,7 +70,7 @@ class TableModel(PamhyrTableModel):
|
|||
value = f"{v:.4f}"
|
||||
elif self._data.header[column] == "time":
|
||||
if self._opt_data == "time":
|
||||
value = timestamp_to_old_pamhyr_date(int(v))
|
||||
value = timestamp_to_old_pamhyr_date_adists(int(v))
|
||||
else:
|
||||
value = str(datetime.fromtimestamp(v))
|
||||
else:
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue