mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Fix the last-modified date format according to RFC2822.
This commit is contained in:
parent
391037c24c
commit
91e00b3f48
1 changed files with 2 additions and 2 deletions
|
@ -279,5 +279,5 @@ class Calendar(object):
|
|||
The date is formatted according to rfc1123-5.2.14.
|
||||
|
||||
"""
|
||||
modification_time = time.localtime(os.path.getmtime(self.path))
|
||||
return time.strftime("%a, %d %b %Y %H:%M:%S %Z", modification_time)
|
||||
modification_time = time.gmtime(os.path.getmtime(self.path))
|
||||
return time.strftime("%a, %d %b %Y %H:%M:%S +0000", modification_time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue