From 3ebdcccffa218616abb5c6e70c11fee5cd94787c Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 31 Dec 2013 09:39:04 +1100 Subject: [PATCH] ical: ical_date must set_wday even if no time is given. --- lib/ical.py | 1 + 1 file changed, 1 insertion(+) 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()): -- 2.39.5