# HG changeset patch # User Paul Boddie # Date 1422666977 -3600 # Node ID 9a1511da6126d321bf64ca9ab87ef22b0f30d50e # Parent b060f0b6e23835fc53da0e0cbe91be7afa2e41d3 Added important note about datetimes provided by free/busy lists. diff -r b060f0b6e238 -r 9a1511da6126 imiptools/period.py --- a/imiptools/period.py Fri Jan 30 19:37:27 2015 +0100 +++ b/imiptools/period.py Sat Jan 31 02:16:17 2015 +0100 @@ -108,6 +108,9 @@ for t in periods: start, end = t[:2] + + # NOTE: This only really works if the datetimes are UTC already. + start = to_timezone(get_datetime(start), tzid) end = to_timezone(get_datetime(end), tzid) l.append((start, end) + tuple(t[2:]))