Fixes all-day events

Fixes 400 error when attempting to post an all-day event via JSON.