hooks/test/unittest_hooks.py
changeset 11033 63d860a14a17
parent 10724 aa3eedba866c
child 11034 75d752e6daf7
--- a/hooks/test/unittest_hooks.py	Fri Dec 18 09:37:15 2015 +0100
+++ b/hooks/test/unittest_hooks.py	Fri Dec 18 09:23:23 2015 +0100
@@ -115,7 +115,7 @@
 
     def test_metadata_creation_modification_date(self):
         with self.admin_access.repo_cnx() as cnx:
-            _now = datetime.now()
+            _now = datetime.utcnow()
             entity = cnx.create_entity('Workflow', name=u'wf1')
             self.assertEqual((entity.creation_date - _now).seconds, 0)
             self.assertEqual((entity.modification_date - _now).seconds, 0)