[pve-devel] [PATCH pve-manager] www/manager6/storage/ContentView.js: consider new ctime value
Dietmar Maurer
dietmar at proxmox.com
Wed Mar 4 11:47:22 CET 2020
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
www/manager6/storage/ContentView.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index ffd38fb9..001efc7f 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -680,11 +680,15 @@ Ext.define('PVE.storage.ContentView', {
let v = record.data.volid;
let match = v.match(/(\d{4}_\d{2}_\d{2})-(\d{2}_\d{2}_\d{2})/);
if (match) {
- let date = match[1].replace(/_/g, '.');
+ let date = match[1].replace(/_/g, '-');
let time = match[2].replace(/_/g, ':');
return date + " " + time;
}
}
+ if (record.data.ctime) {
+ let ctime = new Date(record.data.ctime * 1000);
+ return Ext.Date.format(ctime,'Y-m-d H:i:s');
+ }
return '';
}
},
--
2.20.1
More information about the pve-devel
mailing list