cubicweb/dataimport/stores.py
changeset 11308 df75fe529ba8
parent 11307 74f5814ecdf0
child 11309 31bf3254be69
--- a/cubicweb/dataimport/stores.py	Fri Jan 29 15:08:13 2016 +0100
+++ b/cubicweb/dataimport/stores.py	Tue Jun 21 16:37:17 2016 +0200
@@ -63,6 +63,8 @@
 
 from six import text_type
 
+import pytz
+
 from logilab.common.deprecation import deprecated
 from logilab.common.decorators import cached
 
@@ -262,7 +264,7 @@
         if source is None:
             source = cnx.repo.system_source
         self.source = source
-        self._now = datetime.utcnow()
+        self._now = datetime.now(pytz.utc)
         # attributes/relations shared by all entities of the same type
         self.etype_attrs = []
         self.etype_rels = []