mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
tools: Fix timestamp to pamhyr notation function for Windows.
This commit is contained in:
1 parent
a9f92637ca
commit
9863b05c30
1 file changed
+2
-1
+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
|
||||
|
||||
Reference in new issue
Block a user