is there a chance of a comparison error with None, datetime here?