core: fix datetime handling with new imports

Now it is 'import datetime', not 'from datetime import datetime', so use
explicit datetime class from datetime module.
This commit is contained in:
Marek Marczykowski 2013-03-26 02:15:09 +01:00
parent 59d36cfb69
commit 48098accc5

View File

@ -614,7 +614,7 @@ class QubesVm(object):
start_time = xs.read('', "/vm/%s/start_time" % str(uuid))
if start_time != '':
return datetime.fromtimestamp(float(start_time))
return datetime.datetime.fromtimestamp(float(start_time))
else:
return None