summaryrefslogtreecommitdiff
path: root/src/saml2/time_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/time_util.py')
-rw-r--r--src/saml2/time_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/time_util.py b/src/saml2/time_util.py
index 37cd2319..c3e5b139 100644
--- a/src/saml2/time_util.py
+++ b/src/saml2/time_util.py
@@ -237,7 +237,7 @@ def str_to_time(timestr, format=TIME_FORMAT):
except Exception as exc:
print(f"Exception: {exc} on {timestr}", file=sys.stderr)
raise
- then = time.strptime(elem.groups()[0] + "Z", TIME_FORMAT)
+ then = time.strptime(f"{elem.groups()[0]}Z", TIME_FORMAT)
return time.gmtime(calendar.timegm(then))