set time field if date is set