From 48098accc5c6db2123877eb8e5659a512b51002c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 26 Mar 2013 02:15:09 +0100 Subject: [PATCH] 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. --- core-modules/000QubesVm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 36d6b963..75bf69cd 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -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