From eda64b1abfa3b5f45603161b319af663aa30908e Mon Sep 17 00:00:00 2001 From: Santiago Piccinini Date: Fri, 19 Jul 2024 20:26:38 -0300 Subject: [PATCH] Fix crash on VM settings for a VM with temporary unlocked FW Fixes: https://github.com/QubesOS/qubes-issues/issues/8685 (cherry picked from commit 2b1b1bce797182f44dc688e6727081752b2ebcf7) --- qubesmanager/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index da074c9d..c03cbcfd 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -1465,7 +1465,7 @@ def set_fw_model(self, model): if model.temp_full_access_expire_time: self.temp_full_access.setChecked(True) expire_time = model.temp_full_access_expire_time - \ - firewall.datetime.datetime.now().strftime("%s") + firewall.datetime.datetime.now().timestamp() self.temp_full_access_time.setValue(int(expire_time / 60)) def disable_all_fw_conf(self):