From 1308a6d95c975f5b19d1ce9cd2642078ca69e7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz> Date: Fri, 24 Apr 2015 16:03:59 +0200 Subject: [PATCH] Fixed format_time utcoffset default --- warden3/warden_client/warden_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warden3/warden_client/warden_client.py b/warden3/warden_client/warden_client.py index 5f95262..93704f4 100644 --- a/warden3/warden_client/warden_client.py +++ b/warden3/warden_client/warden_client.py @@ -588,7 +588,7 @@ def format_timestamp(epoch=None, utc=True, utcoffset=None): return format_time(*time.gmtime(epoch)[:6], microsec=us, utcoffset=utcoffset) -def format_time(year, month, day, hour, minute, second, microsec=0, utcoffset=0): +def format_time(year, month, day, hour, minute, second, microsec=0, utcoffset=None): if utcoffset is None: utcoffset = -(time.altzone if time.daylight else time.timezone) tstr = "%04d-%02d-%02dT%02d:%02d:%02d" % (year, month, day, hour, minute, second) -- GitLab