tritech / node-icalendar

iCalendar parser and generator for Node.js
MIT License
234 stars 50 forks source link

Added full day support #43

Open mvdevries opened 8 years ago

mvdevries commented 8 years ago

I added a change to the code for supporting full day events using the setDate() method, if noting or false is given to the last parameter it will function in the old way, this won't effect old code. I tested the unittestes and added 1 for testing full day events.

When using toString() it outputs the dates in the following format:

DTSTART;VALUE=DATE:20160311
DTEND;VALUE=DATE:20160312