]> git.proxmox.com Git - pmg-gui.git/commitdiff
set the default quarantine timespan to a week
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 28 Mar 2018 08:36:02 +0000 (10:36 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 29 Mar 2018 12:30:07 +0000 (14:30 +0200)
instead of only the current day

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/QuarantineList.js

index 597e573d7ceb3b684e4666447736ea5740d81f03..cd2ef3e97463df146cbcff2fa14b15174ecfcc2c 100644 (file)
@@ -39,7 +39,7 @@ Ext.define('PMG.QuarantineList', {
            if (PMG.QuarantineList.from != 0) {
                from = new Date(PMG.QuarantineList.from * 1000);
            } else {
            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;
            }
 
            var to;