From 65c39bc04aad2a4f5f778e196f21fb0c0e3d9097 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Nov 2021 19:26:31 +0100 Subject: [PATCH] tfa view: avoid showing start of unix epoch when no creation date as that is a bit unrealistically, rather use N/A (not applicable) Signed-off-by: Thomas Lamprecht --- src/panel/TfaView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panel/TfaView.js b/src/panel/TfaView.js index 712cdfe..0b477ef 100644 --- a/src/panel/TfaView.js +++ b/src/panel/TfaView.js @@ -234,7 +234,7 @@ Ext.define('Proxmox.panel.TfaView', { width: 150, sortable: true, dataIndex: 'created', - renderer: Proxmox.Utils.render_timestamp, + renderer: t => !t ? 'N/A' : Proxmox.Utils.render_timestamp(t), }, { header: gettext('Description'), -- 2.39.2