[pmg-devel] applied: [PATCH pmg-gui] virusquarantine: fix time format

Stoiko Ivanov s.ivanov at proxmox.com
Mon Jun 14 10:19:57 CEST 2021


Ext js orients itself on php's date function, which uses 'i' for
minutes ('m' is the month as integer)[0].

Reported via our community-forum:
https://forum.proxmox.com/threads/time-display-bug-in-virus-quarantine.90816/

Quickly tested on my test-setup

[0] https://docs.sencha.com/extjs/7.0.0/modern/Ext.Date.html
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
directly applied this one, since it's a very small change. Additionally quickly
skimmed through the pmg-gui sources for other occurences of 'm' for minutes.
 js/VirusQuarantine.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/VirusQuarantine.js b/js/VirusQuarantine.js
index 6ff1c17..7f27188 100644
--- a/js/VirusQuarantine.js
+++ b/js/VirusQuarantine.js
@@ -147,7 +147,7 @@ Ext.define('PMG.VirusQuarantine', {
 		    xtype: 'datecolumn',
 		    header: gettext('Time'),
 		    dataIndex: 'time',
-		    format: 'H:m:s',
+		    format: 'H:i:s',
 		},
 	    ],
 	},
-- 
2.20.1





More information about the pmg-devel mailing list