Skip to content

Commit

Permalink
Fix crash on VM settings for a VM with temporary unlocked FW
Browse files Browse the repository at this point in the history
Fixes: QubesOS/qubes-issues#8685
(cherry picked from commit 2b1b1bc)
  • Loading branch information
spiccinini authored and marmarek committed Sep 2, 2024
1 parent 9f8fc55 commit eda64b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit eda64b1

Please sign in to comment.