From 1c51e8118138b0d8c72eff6800693450ab23d4b8 Mon Sep 17 00:00:00 2001 From: Lukasz Langa Date: Wed, 1 Jun 2011 16:49:46 +0200 Subject: [PATCH] timezone is a part of the VCALENDAR file --- radicale/xmlutils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index c7bbed4..354c535 100644 --- a/radicale/xmlutils.py +++ b/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: