finally found some time to try this, sorry for the delay in getting back. Timezones don't work with "epoch_millis" format in range, but you can specify another format in the range query, even if the field you query has "epoch_millis" format. I just tried the following in ES 6.1.1:
With timezone "-01:00" there are no hits, so the zone takes effect.
I only tried the rest endpoint but this should also apply to the JAVA Api.
I think you might be able to use scripts for doing this in aggregations, but this depends very much on the use case I think. I'd open a separate issue for this since I'm not too familiar with this myself.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.