Bug 1093058 - [Calendar] update the way all day events are calculated

Is casting the `Date`s to `Number`s necessary?