Fix date bug on mobile events

Previous code caused wrong dates to be selected when adding event.