tools: Fix timestamp to pamhyr notation function for Windows.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-20 14:25:23 +01:00
1 parent a9f92637ca
commit 9863b05c30
1 file changed
+2 -1
+2 -1
View File
@@ -252,8 +252,9 @@ def old_pamhyr_date_to_timestamp(date: str):
def timestamp_to_old_pamhyr_date(time: int):
logger.debug(f"timestamp_to_old_pamhyr_date({time}: {type(time)})")
t0 = datetime.fromtimestamp(0)
t = datetime.fromtimestamp(time)
t = datetime.fromtimestamp(int(time))
dt = t - t0
hours = dt.seconds // 3600