bug fixes when translating datetime with null value