diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-02-05 13:14:02 +0100 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-02-05 13:14:02 +0100 |
commit | bfc6b55e576b67ad4fe8e4277a257279f1e73858 (patch) | |
tree | 83f7c7d8f37e30d6d48d00a46ae7d76549f6f6db | |
parent | 7570a10fe93723f1fa9c9eb5c5c4ad5051b19d2c (diff) | |
download | pysaml2-bfc6b55e576b67ad4fe8e4277a257279f1e73858.tar.gz |
Added argument to the instant() function.
-rw-r--r-- | src/saml2/time_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/time_util.py b/src/saml2/time_util.py index f0233dcb..ce8c5fc5 100644 --- a/src/saml2/time_util.py +++ b/src/saml2/time_util.py @@ -252,7 +252,7 @@ def str_to_time(timestr, format=TIME_FORMAT): def instant(format=TIME_FORMAT, time_stamp=0): if time_stamp: - return time.strftime(format, time_stamp) + return time.strftime(format, time.gmtime(time_stamp)) else: return time.strftime(format, time.gmtime()) |