When i use date_histogram it use utc time

"date_histogram" : {
            "field" : "@timestamp",
            "interval" : "day"
        },

 "aggregations": {
    "salestime": {
      "buckets": [
        {
          "key_as_string": "2018-04-02T00:00:00.000Z",
          "key": 1522627200000,
          "doc_count": 167,

so can i use my time zone?

This? https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html#_time_zone_2

1 Like

yes i use that

wow i am stupid i have found the time zone set. thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.