Skip to content

Commit

Permalink
a quick fix for parsing a bad ical feed from Google Calendar which se…
Browse files Browse the repository at this point in the history
…t one event's create year to 0.
  • Loading branch information
adieu committed Sep 14, 2011
1 parent 458fe5d commit b564c1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vobject/icalendar.py
Expand Up @@ -1617,6 +1617,7 @@ def stringToDateTime(s, tzinfo=None):
tzinfo = utc
except:
raise ParseError("'%s' is not a valid DATE-TIME" % s)
year = year and year or 2000
return datetime.datetime(year, month, day, hour, minute, second, 0, tzinfo)


Expand Down

0 comments on commit b564c1f

Please sign in to comment.