[pmg-devel] [PATCH pmg-gui 3/3] set the default quarantine timespan to a week

Dominik Csapak d.csapak at proxmox.com
Wed Mar 28 10:36:02 CEST 2018


instead of only the current day

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/QuarantineList.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/QuarantineList.js b/js/QuarantineList.js
index 597e573..cd2ef3e 100644
--- a/js/QuarantineList.js
+++ b/js/QuarantineList.js
@@ -39,7 +39,7 @@ Ext.define('PMG.QuarantineList', {
 	    if (PMG.QuarantineList.from != 0) {
 		from = new Date(PMG.QuarantineList.from * 1000);
 	    } else {
-		from = new Date();
+		from = new Date(Date.now() - 7*24*60*60*1000);
 	    }
 
 	    var to;
-- 
2.11.0




More information about the pmg-devel mailing list