1.1 --- a/imiptools/dates.py Sun May 17 19:25:22 2015 +0200
1.2 +++ b/imiptools/dates.py Sun May 17 19:31:54 2015 +0200
1.3 @@ -431,13 +431,22 @@
1.4
1.5 return dtstart_attr and dtstart_attr.get("TZID") or dtend_attr and dtend_attr.get("TZID") or None
1.6
1.7 -def to_recurrence_start(recurrenceid, tzid):
1.8 +def get_recurrence_start(recurrenceid, tzid):
1.9
1.10 """
1.11 Return 'recurrenceid' in a form suitable for comparison with free/busy start
1.12 datetimes, using 'tzid' to convert recurrence identifiers that are dates.
1.13 """
1.14
1.15 - return format_datetime(to_utc_datetime(get_datetime(recurrenceid), tzid))
1.16 + return to_utc_datetime(get_datetime(recurrenceid), tzid)
1.17 +
1.18 +def to_recurrence_start(recurrenceid, tzid):
1.19 +
1.20 + """
1.21 + Return 'recurrenceid' in a form suitable for use as an unambiguous
1.22 + identifier, using 'tzid' to convert recurrence identifiers that are dates.
1.23 + """
1.24 +
1.25 + return format_datetime(get_recurrence_start(recurrenceid, tzid))
1.26
1.27 # vim: tabstop=4 expandtab shiftwidth=4