imip-agent

Changeset

1451:4f171f951857
2018-02-03 Paul Boddie raw files shortlog changelog graph Provide the tzid to permit conversion of dates to datetimes. client-editing-simplification
imiptools/data.py (file)
     1.1 --- a/imiptools/data.py	Sat Feb 03 16:20:52 2018 +0100
     1.2 +++ b/imiptools/data.py	Sat Feb 03 23:30:04 2018 +0100
     1.3 @@ -1297,7 +1297,7 @@
     1.4      # until the end of time must wrap each period for that period to be
     1.5      # included. The end will be handled in the materialisation process.
     1.6  
     1.7 -    return ifilter(Period(start, None).wraps,
     1.8 +    return ifilter(Period(start, None, tzid).wraps,
     1.9                     RulePeriodCollection(selector, main_period, tzid,
    1.10                                          end, inclusive))
    1.11