Fix datetimepicker bug with 24 hour format