mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Date/time: now save global timestamp in the model, instead of relative
This commit is contained in:
1 parent
beece68498
commit
2d2f83436c
7 files changed
+16
-15
No files matched your search
@@ -91,7 +91,7 @@ class TableModel(PamhyrTableModel):
|
||||
value = timestamp_to_old_pamhyr_date_adists(int(v))
|
||||
else:
|
||||
value = format_datetime(
|
||||
self._start_date + timedelta(seconds=float(v))
|
||||
datetime(1970, 1, 1) + timedelta(seconds=float(v))
|
||||
)
|
||||
else:
|
||||
value = f"{v}"
|
||||
@@ -111,7 +111,7 @@ class TableModel(PamhyrTableModel):
|
||||
try:
|
||||
if (self._data.header[column] == "time"
|
||||
and self._opt_data == "date"):
|
||||
value = self.date_to_elapsed_seconds(value)
|
||||
value = self.date_to_timestamp(value)
|
||||
|
||||
row = self.get_true_data_row(row)
|
||||
|
||||
|
||||
Reference in new issue
Block a user