Commit 9863b05c authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

tools: Fix timestamp to pamhyr notation function for Windows.

Showing with 2 additions and 1 deletion
+2 -1
......@@ -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
......
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