summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-10 05:05:30 +0300
committerMaxim Devaev <[email protected]>2022-11-10 05:05:30 +0300
commitd4e1e9e05bb4fabc6fd3f86dc21b2c3378002f03 (patch)
tree3d0f24e479eb10cfe2e24f22d3e95c68831a3670 /web
parent666880d757f91c05aa8cb8810bd0da44045b10df (diff)
Fixed pikvm/pikvm#842: Added timestamps for MSD images
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/msd.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js
index 6285258a..9d454d97 100644
--- a/web/share/js/kvm/msd.js
+++ b/web/share/js/kvm/msd.js
@@ -409,6 +409,11 @@ export function Msd() {
if (image.in_storage !== undefined && !image.in_storage) {
title += ", out of storage";
}
+
+ let dt = new Date(image.mod_ts * 1000);
+ dt = new Date(dt.getTime() - (dt.getTimezoneOffset() * 60000));
+ title += " \u2500 " + dt.toISOString().slice(0, -8).replaceAll("-", ".").replace("T", "-");
+
let el = new Option(title, "", false, false);
el.disabled = true;
el.className = "comment";