Merge pull request #4453 from awsr/python-datetime-compat

Fix timestamp formatting for thumbnails
This commit is contained in:
Vladimir Mandic
2025-12-07 06:49:38 +01:00
committed by GitHub
+2 -2
View File
@@ -92,7 +92,7 @@ def register_api(app: FastAPI): # register api
'width': width,
'height': height,
'size': stat_size,
'mtime': stat_mtime.timestamp(),
'mtime': stat_mtime.timestamp() * 1000, # JS timestamps use milliseconds
}
return content
except Exception as e:
@@ -119,7 +119,7 @@ def register_api(app: FastAPI): # register api
'width': width,
'height': height,
'size': stat_size,
'mtime': stat_mtime.timestamp(),
'mtime': stat_mtime.timestamp() * 1000, # JS timestamps use milliseconds
}
return content
except Exception as e: