fix : modify formatDateTimes function to avoid infinite loop in case of null value in object propertie