imiptools/period.py | raw changeset files shortlog |
1.1 --- a/imiptools/period.py Fri Jan 30 19:37:27 2015 +0100 1.2 +++ b/imiptools/period.py Sat Jan 31 02:16:17 2015 +0100 1.3 @@ -108,6 +108,9 @@ 1.4 1.5 for t in periods: 1.6 start, end = t[:2] 1.7 + 1.8 + # NOTE: This only really works if the datetimes are UTC already. 1.9 + 1.10 start = to_timezone(get_datetime(start), tzid) 1.11 end = to_timezone(get_datetime(end), tzid) 1.12 l.append((start, end) + tuple(t[2:]))