Corrects the display of the time in the datetimepicker