Correctly format time as HH:MM for time picker