From: NeilBrown Date: Mon, 30 Dec 2013 22:39:04 +0000 (+1100) Subject: ical: ical_date must set_wday even if no time is given. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=3ebdcccffa218616abb5c6e70c11fee5cd94787c;p=plato.git ical: ical_date must set_wday even if no time is given. --- diff --git a/lib/ical.py b/lib/ical.py index 1f5204b..092bc7e 100644 --- a/lib/ical.py +++ b/lib/ical.py @@ -683,6 +683,7 @@ def ical_date(s, tz): m.day = int(s[6:8]) if len(s) == 8: m.hr = -1 + m.set_wday() return m if (not (len(s) == 15 or (len(s) == 16 and s[15] == 'Z')) or s[8] != 'T' or not s[9:15].isdigit()):