{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9062","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9062/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9062/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9062/events","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9062","id":52823777,"number":9062,"title":"Aggs: clean up `date_histogram`","user":{"login":"jpountz","id":299848,"avatar_url":"https://avatars.githubusercontent.com/u/299848?v=3","gravatar_id":"","url":"https://api.github.com/users/jpountz","html_url":"https://github.com/jpountz","followers_url":"https://api.github.com/users/jpountz/followers","following_url":"https://api.github.com/users/jpountz/following{/other_user}","gists_url":"https://api.github.com/users/jpountz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpountz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpountz/subscriptions","organizations_url":"https://api.github.com/users/jpountz/orgs","repos_url":"https://api.github.com/users/jpountz/repos","events_url":"https://api.github.com/users/jpountz/events{/privacy}","received_events_url":"https://api.github.com/users/jpountz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/:Aggs","name":":Aggs","color":"009800"},{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/labels/v2.0.0","name":"v2.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":{"login":"cbuescher","id":10398885,"avatar_url":"https://avatars.githubusercontent.com/u/10398885?v=3","gravatar_id":"","url":"https://api.github.com/users/cbuescher","html_url":"https://github.com/cbuescher","followers_url":"https://api.github.com/users/cbuescher/followers","following_url":"https://api.github.com/users/cbuescher/following{/other_user}","gists_url":"https://api.github.com/users/cbuescher/gists{/gist_id}","starred_url":"https://api.github.com/users/cbuescher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbuescher/subscriptions","organizations_url":"https://api.github.com/users/cbuescher/orgs","repos_url":"https://api.github.com/users/cbuescher/repos","events_url":"https://api.github.com/users/cbuescher/events{/privacy}","received_events_url":"https://api.github.com/users/cbuescher/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2014-12-24T15:14:16Z","updated_at":"2015-02-06T14:28:20Z","closed_at":null,"body":"The `date_histogram` aggregation supports both `pre_zone` and `post_zone`. This is bad because specifying two different values for these parameters makes elasticsearch return dates that are not in UTC. Instead we should only support a `zone` parameter that is the time zone that we will use to compute the buckets, and return buckets in UTC.\r\n\r\nSimilarly we have `pre_offset` and `post_offset` while we should only support a single `offset` parameter that would allow to do things like:\r\n - daily buckets should go from 6AM to 6AM the next day instead of 12AM\r\n - monthly buckets should go from the 10th of the month to the 10th of the next month instead of the 1st\r\n - etc."},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/comments/73243970","html_url":"https://github.com/elasticsearch/elasticsearch/issues/9062#issuecomment-73243970","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch/issues/9062","id":73243970,"user":{"login":"jpountz","id":299848,"avatar_url":"https://avatars.githubusercontent.com/u/299848?v=3","gravatar_id":"","url":"https://api.github.com/users/jpountz","html_url":"https://github.com/jpountz","followers_url":"https://api.github.com/users/jpountz/followers","following_url":"https://api.github.com/users/jpountz/following{/other_user}","gists_url":"https://api.github.com/users/jpountz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpountz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpountz/subscriptions","organizations_url":"https://api.github.com/users/jpountz/orgs","repos_url":"https://api.github.com/users/jpountz/repos","events_url":"https://api.github.com/users/jpountz/events{/privacy}","received_events_url":"https://api.github.com/users/jpountz/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T14:28:20Z","updated_at":"2015-02-06T14:28:20Z","body":"+1"}}