Fix use of iso8601.Utc.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 15 Dec 2014 00:51:32 +0000 (00:51 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 6 Mar 2015 03:41:48 +0000 (04:41 +0100)
Change-Id: Id592571a173eff36e2fb9b395f61a6fb53d580e6
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/run.py

index b7638f0daa8ebc7ef42b383990f1ce19705452a3..8a0e7ca6c414ee6d9a78ed515a7ba211b03cad7d 100644 (file)
@@ -21,6 +21,7 @@ import datetime
 import os
 import subprocess
 from samba import subunit
+from iso8601 import iso8601
 import sys
 import tempfile
 import warnings
@@ -88,7 +89,7 @@ def exported_envvars_str(vars, names):
 def now():
     """Return datetime instance for current time in UTC.
     """
-    return datetime.datetime.utcnow().replace(tzinfo=subunit.UTC())
+    return datetime.datetime.utcnow().replace(tzinfo=iso8601.Utc())
 
 
 def run_testsuite_command(name, cmd, subunit_ops, env=None, outf=None):