The issue seems to be with the date_to_xmlschema(date) method.