Browse Source

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.
Marek Marczykowski 11 years ago
parent
commit
48098accc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core-modules/000QubesVm.py

+ 1 - 1
core-modules/000QubesVm.py

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