Commit Graph

8 Commits

Author SHA1 Message Date
Thanh
8172b653ac Refactor code to be more modular. open_cal() now returns both the list
of events as well as the calendar itself, so that you can get the field
calendar.CALENDAR_TIMEZONE

This is useful in formatting events that happen for the entire day, as
their start and end do not have start fields.

Also implemented format_events so that all events start and end time are
in datetime.datetime format, rather than datetime.date format. This
allows sortedevents to run regardless of events are for a specified time
or the whole day.
2021-08-28 18:39:02 +10:00
rcriii42
ade8ec7aac Fix typo uft8 to utf8 2021-01-02 13:19:31 -06:00
Martin Moeller
a607e278ad Implemented sorting of events before writing to file. Ignore TRANSP: TRANSPARENT (Needed to sort and also to skip events that have not been accepted) 2020-11-02 04:46:00 +01:00
Ted Steinmann
02a6bf871a Skip blank desc. to prevent encode error 2020-03-25 22:34:56 -05:00
Bob Wansink
4843a4466d Fix unicode encoding problem when importing calendars from sources like gmail. 2019-12-02 09:31:31 +01:00
Gregory Newman
58c92578ce Convert all events, skip blanks, fix .dt crash 2019-10-24 10:49:10 -05:00
Gregory Newman
4a1717452a Python 3 compatibility 2019-10-24 09:16:31 -05:00
Erik Cox
35052fb71b Initial commit 2016-02-04 14:01:46 -08:00