fix gallery mtime display

This commit is contained in:
Vladimir Mandic
2024-05-29 09:00:31 -04:00
parent 07b9c553b6
commit d9ab46218b
+2 -2
View File
@@ -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,