Fix null datetime object.