]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: ContentView: consider new ctime value
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 4 Mar 2020 10:47:22 +0000 (11:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 6 Mar 2020 18:05:28 +0000 (19:05 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/ContentView.js

index ffd38fb9645bb51673c32d4162a3f1d142210d59..001efc7f68231fcc857d9023d4c027112ff07ef7 100644 (file)
@@ -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 '';
                }
            },