Signed-off-by: Dietmar Maurer <diet...@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

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to