cubicweb/dataimport/massive_store.py
changeset 11308 df75fe529ba8
parent 11305 118d83e65ca8
child 11310 e0b7277e5394
--- a/cubicweb/dataimport/massive_store.py	Fri Jan 29 15:08:13 2016 +0100
+++ b/cubicweb/dataimport/massive_store.py	Tue Jun 21 16:37:17 2016 +0200
@@ -24,6 +24,8 @@
 
 from six.moves import range
 
+import pytz
+
 from yams.constraints import SizeConstraint
 
 from psycopg2 import ProgrammingError
@@ -119,7 +121,7 @@
         self._dbh = PGHelper(self._cnx, pg_schema)
         self._data_entities = defaultdict(list)
         self._data_relations = defaultdict(list)
-        self._now = datetime.utcnow()
+        self._now = datetime.now(pytz.utc)
         self._default_cwuri = make_uid('_auto_generated')
         self._count_cwuri = 0
         self.on_commit_callback = on_commit_callback