Fix cases where date is set but time is not set