{"action":"opened","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/52","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/52/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-dsl-py/issues/52/events","html_url":"https://github.com/elasticsearch/elasticsearch-dsl-py/issues/52","id":53629115,"number":52,"title":"Getting the TimeZone specific aggregations in Date Histogram","user":{"login":"apandita","id":9034514,"avatar_url":"https://avatars.githubusercontent.com/u/9034514?v=3","gravatar_id":"","url":"https://api.github.com/users/apandita","html_url":"https://github.com/apandita","followers_url":"https://api.github.com/users/apandita/followers","following_url":"https://api.github.com/users/apandita/following{/other_user}","gists_url":"https://api.github.com/users/apandita/gists{/gist_id}","starred_url":"https://api.github.com/users/apandita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apandita/subscriptions","organizations_url":"https://api.github.com/users/apandita/orgs","repos_url":"https://api.github.com/users/apandita/repos","events_url":"https://api.github.com/users/apandita/events{/privacy}","received_events_url":"https://api.github.com/users/apandita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-07T12:49:40Z","updated_at":"2015-01-07T12:49:40Z","closed_at":null,"body":"Hey Guys,\r\nI am stuck at modifying the current timezone of a datetime field which is is by default UTC which implementing a datehistogram aggregation.\r\nI am passing a param      time_zone='+05:30'  for setting the timezone of that field to Asia/Kolkatta but still dont get the desired results.\r\nHere's the query and the output\r\n\r\nQuery:\r\n\r\ns = Search(using=es).index(\"my-index\")\r\ns.aggs.bucket('top_tags','date_histogram',field='my_date_field',interval='year',time_zone='+05:30')\r\nr = s.execute()\r\nr.aggregations.top_tags.buckets\r\n\r\nResult:\r\n\r\n[{u'doc_count': 392099,\r\n  u'key': 1356998400000,\r\n  u'key_as_string': u'2013-01-01T00:00:00.000Z'},\r\n {u'doc_count': 360,\r\n  u'key': 1388534400000,\r\n  u'key_as_string': u'2014-01-01T00:00:00.000Z'}]\r\n\r\nWhy isnt the modifying timezone reflecting here, Am i missing something here?\r\n\r\n"}}