tritech/node-icalendar — pull request #3 by msealand (2012-09-11 22:05:26+00:00)
Title: Add support for all day events.

First off, thanks for a great node module!

The project that I'm working on needed support for all day events. In an effort to get that working, I added support for an altType in CalendarProperty. This way we can use two different types for DTSTART (DATE-TIME and DATE). I then changed setDate() so that, when it is called with an undefined end parameter, it adds the DTSTART property using its altType (DATE) and does not add a DTEND or DURATION property. This makes the event appear as an all day event in my tests (using Apple's calendar app). This method of creating an all day event is mentioned in the RFC in [section 3.6.1, page 53](http://tools.ietf.org/html/rfc5545#section-3.6.1).

Hopefully this fits in with the direction you're going with the module, but let me know if it doesn't or if there's something you think should be implemented differently.