Adds time zone to date_range bucket aggregation#37576
Merged
TinaHeiligers merged 2 commits intoelastic:masterfrom May 31, 2019
Merged
Adds time zone to date_range bucket aggregation#37576TinaHeiligers merged 2 commits intoelastic:masterfrom
TinaHeiligers merged 2 commits intoelastic:masterfrom
Conversation
Contributor
💚 Build Succeeded |
kertal
approved these changes
May 31, 2019
Member
kertal
left a comment
There was a problem hiding this comment.
Code LGTM, tested locally with Chrome
Contributor
💚 Build Succeeded |
TinaHeiligers
added a commit
to TinaHeiligers/kibana
that referenced
this pull request
May 31, 2019
TinaHeiligers
added a commit
that referenced
this pull request
May 31, 2019
Contributor
|
Pinging @elastic/kibana-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the time zone to the data_range bucket aggregation following the implementation in date_histogram.
Resolves #34535.
From the original issue:
Describe the bug:
The visualization 'metric' doesn't handle the configured Timezone correctly.
Steps to reproduce:
Set the Timezone in the 'advanced settings' of Kibana to 'Europe/Amsterdam'
Create a new 'metric' visualization.
Split group and select the 'date range' aggregation
Select a Date Field
Set from to 'now-2d/d'
Set to to 'now-1d/d'
The label of visualization displays "April 2nd 2019, 02:00:00.000 to April 3rd 2019, 02:00:00.000 - Count"
Notice that the from (and the to) have a time of 2 o'clock.
Before:

After:

Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] This was checked for cross-browser compatibility, including a check against IE11- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately