Fixes all-day events

Fixes 400 error when attempting to post an all-day event via JSON.
Merge remote-tracking branch 'aeppert/master'