diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-03 11:19:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-03 11:19:09 +0200 |
commit | 180c0207877d1490877449960853fbcbccd4b603 (patch) | |
tree | db0c9b403a546294372f53782b65f1c97f0764fd | |
parent | 107c11ff6f0af5d8882a8f4cf83ca6c7e78dbdbb (diff) | |
download | www_shared-180c0207877d1490877449960853fbcbccd4b603.tar.gz www_shared-180c0207877d1490877449960853fbcbccd4b603.zip |
use GMT
-rw-r--r-- | time.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,6 +41,6 @@ def time_rfc822(t): | |||
41 | if type(t) == float: | 41 | if type(t) == float: |
42 | return email.utils.formatdate(t) | 42 | return email.utils.formatdate(t) |
43 | elif type(t) == datetime.datetime: | 43 | elif type(t) == datetime.datetime: |
44 | return email.utils.format_datetime(t) | 44 | return email.utils.format_datetime(t,usegmt=True) |
45 | else: | 45 | else: |
46 | return sys.exit(1) | 46 | return sys.exit(1) |