From f01e977695643a761c9e4912147cf881b2b95715 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Sat, 6 Dec 2025 18:34:15 -0800 Subject: [PATCH] Fix timestamp formatting for thumbnails --- modules/api/gallery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api/gallery.py b/modules/api/gallery.py index 8e0aa5b18..d3fdf85ef 100644 --- a/modules/api/gallery.py +++ b/modules/api/gallery.py @@ -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: