FOSElasticaBundle icon indicating copy to clipboard operation
FOSElasticaBundle copied to clipboard

Use higher-precision value to normalize DateTimeInterface

Open msmuenchen opened this issue 1 year ago • 0 comments

The normalizeValue function in ModelToElasticaAutoTransformer serializes a DateTimeInterface value into the format string ´c` aka ISO 8601.

This can lead to a loss of precision - the date_format of Elasticsearch is clearly capable of ingesting RFC3339 Extended (aka ISO 8601 with fractional seconds) by specifying date_time as format.

msmuenchen avatar Jul 04 '23 00:07 msmuenchen