Hi,
We have some issues trying to index documents with date fields set on the 29 of February.
Below an example :
{"type":"mapper_parsing_exception","reason":"failed to parse field [date_updated] of type [date] in document with id 'mydoc_17107'. Preview of field's value: '2008-02-29 00:00:00'","caused_by":{"type":"date_time_exception","reason":"Invalid date 'February 29' as '1970' is not a leap year"}}
Mapping :
"mappings" : {
"mydoc" : {
"properties" : {
"date_created" : {
"type" : "date",
"format" : "YYYY-MM-dd HH:mm:ss"
},
"date_indexed" : {
"type" : "date",
"format" : "YYYY-MM-dd HH:mm:ss"
},
"date_updated" : {
"type" : "date",
"format" : "YYYY-MM-dd HH:mm:ss"
},
}
}
}
We can reproduce the issue locally (Elasticsearch 7.4.0 using the official docker image) and on Elastic Cloud (Elasticsearch 7.4.1).
Any idea?