Fixed error in qube-manager

Last backup timestamp was not correctly processed.
This commit is contained in:
Marta Marczykowska-Górecka 2018-01-18 23:42:34 +01:00
parent 35c0e12008
commit 985f8fb56d
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -21,6 +21,7 @@
from PyQt4 import QtGui # pylint: disable=import-error from PyQt4 import QtGui # pylint: disable=import-error
from PyQt4 import QtCore # pylint: disable=import-error from PyQt4 import QtCore # pylint: disable=import-error
import datetime
# pylint: disable=too-few-public-methods # pylint: disable=too-few-public-methods
power_order = QtCore.Qt.DescendingOrder power_order = QtCore.Qt.DescendingOrder
@ -505,7 +506,8 @@ class VmLastBackupItem(QtGui.QTableWidgetItem):
self.vm = vm self.vm = vm
if getattr(self.vm, 'backup_timestamp', None): if getattr(self.vm, 'backup_timestamp', None):
self.setText(self.vm.backup_timestamp) self.setText(
str(datetime.datetime.fromtimestamp(self.vm.backup_timestamp)))
else: else:
self.setText("") self.setText("")