Fixed issue where date and time field were always required.