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.