Fix time format of datetimepicker.