From 985f8fb56d50496996a0f403ad8e7e80c94c5fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Thu, 18 Jan 2018 23:42:34 +0100 Subject: [PATCH] Fixed error in qube-manager Last backup timestamp was not correctly processed. --- qubesmanager/table_widgets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubesmanager/table_widgets.py b/qubesmanager/table_widgets.py index 06ec486..efa3fe6 100644 --- a/qubesmanager/table_widgets.py +++ b/qubesmanager/table_widgets.py @@ -21,6 +21,7 @@ from PyQt4 import QtGui # pylint: disable=import-error from PyQt4 import QtCore # pylint: disable=import-error +import datetime # pylint: disable=too-few-public-methods power_order = QtCore.Qt.DescendingOrder @@ -505,7 +506,8 @@ class VmLastBackupItem(QtGui.QTableWidgetItem): self.vm = vm if getattr(self.vm, 'backup_timestamp', None): - self.setText(self.vm.backup_timestamp) + self.setText( + str(datetime.datetime.fromtimestamp(self.vm.backup_timestamp))) else: self.setText("")