Skip to content

Date field mapping "epoch_millis" errors on date aggregations with timezones other than UTC #31392

@cbuescher

Description

@cbuescher

As demonstrated in elastic/kibana#19858, having a date field with "format": "epoch_millis" can cause
errors when running date histogram aggregations with a time zone other than UTC. I think this problem was introduced as a side effect of #30534. While throwing an error for parsing time values with "format": "epoch_millis" and timezones other than UTC looks like the intented behaviour (see #22621), it should be able to overwrite this by specifying format in the aggregation. This however doesn't seem to work currently on 6.x.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions