peterbraden/node-ical — Issue #8: Start/End dates without times mis-translated into node server TZ
Author: drauschenbach
Created: 2011-11-05 17:09:39+00:00
State: open

In a VEVENT, an all-day event is represented with a start and end date, without time information:

DTSTART;VALUE=DATE:20111108
DTEND;VALUE=DATE:20111111

These values are placed into a javascript Date object, and then adjusted from GMT into the server timezone (GMT-0700 in my case). This gives me a start and end date of 7 hours before midnight. And since the date is no longer midnight, I lose the ability to discover whether it's an all-day event.