From d9ab46218bdbc21608a1a3465424f3fb46c954aa Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Wed, 29 May 2024 09:00:31 -0400 Subject: [PATCH] fix gallery mtime display --- javascript/gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/gallery.js b/javascript/gallery.js index 90f50b1e8..545a65726 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -163,7 +163,7 @@ class GalleryFile extends HTMLElement { this.width = cache.width; this.height = cache.height; this.size = cache.size; - this.mtime = new Date(1000 * cache.mtime); + this.mtime = new Date(cache.mtime); } else { try { const json = await delayFetchThumb(this.src); @@ -175,7 +175,7 @@ class GalleryFile extends HTMLElement { this.width = json.width; this.height = json.height; this.size = json.size; - this.mtime = new Date(1000 * json.mtime); + this.mtime = new Date(json.mtime); await idbAdd({ hash: this.hash, folder: this.folder,