tools: Fix timestamp to pamhyr notation function for Windows.

setup.py
Pierre-Antoine Rouby 2024-02-20 14:25:23 +01:00
parent a9f92637ca
commit 9863b05c30
1 changed files with 2 additions and 1 deletions

View File

@ -252,8 +252,9 @@ def old_pamhyr_date_to_timestamp(date: str):
def timestamp_to_old_pamhyr_date(time: int): def timestamp_to_old_pamhyr_date(time: int):
logger.debug(f"timestamp_to_old_pamhyr_date({time}: {type(time)})")
t0 = datetime.fromtimestamp(0) t0 = datetime.fromtimestamp(0)
t = datetime.fromtimestamp(time) t = datetime.fromtimestamp(int(time))
dt = t - t0 dt = t - t0
hours = dt.seconds // 3600 hours = dt.seconds // 3600