1
0
Эх сурвалжийг харах

Fix the last-modified date format according to RFC2822.

Guillaume Ayoub 15 жил өмнө
parent
commit
91e00b3f48
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      radicale/ical.py

+ 2 - 2
radicale/ical.py

@@ -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)