fixed the error with the malformed date string