Fix selected date when time picker goes over the midnight.
Merge branch 'selected-date-fix'