Просмотр исходного кода

timezone is a part of the VCALENDAR file

Lukasz Langa 14 лет назад
Родитель
Сommit
1c51e81181
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      radicale/xmlutils.py

+ 5 - 1
radicale/xmlutils.py

@@ -340,7 +340,11 @@ def proppatch(path, xml_request, calendar):
 
     with calendar.props as calendar_props:
         for short_name, value in props_to_set.items():
-            calendar_props[short_name] = value
+            if short_name == 'C:calendar-timezone':
+                calendar.replace('', value)
+                calendar.write()
+            else:
+                calendar_props[short_name] = value
             _add_propstat_to(response, short_name, 200)
         for short_name in props_to_remove:
             try: