Yes, the date is stored in UTC format. The reason why I think you are seeing the past 3 - 4 hours is you are missing a "lt". A range should contain a gt and lt if you want to get a specific set of documents within a set timeframe - like the last hour.
Depending on the version of ES you are using, you can also use aggregation date_range / to & from / or you can store your dates in the timezone you want.
For example:
POST mytime2/mytimer
{
"mynum" : "2017-02-21T12:02:04.4367673-08:00"
}
See that in the last bit I put -08:00 , which converts the UTC to PST.
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.