You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ive got a (little) dashboard problem, that drives me crazy. I want the histogram showing the message flow of a day.
I do a general search for all messages of a certain day using the time picker from 2016-06-15 00:00:00 to 2016-06-16 00:00:00.
My timezone is Europe/Berlin, so plus 2 hours at the moment. In the browser URL I can see "from=2016-06-14T22%3A00...."
The histogram shows 24 bars from 00 to 23, everything is fine until I add the histogram to a dashboard.
Now the histogram has that particular time range from 2016-05-14 22:00:00:00 to 2016-06-15 22:00:00:
What am I doing wrong, that this -2 hours shift happens?
I could reproduce the issue in the current master.
Steps to reproduce the problem
Set Europe/Berlin as your Graylog, browser, and user time zone
Do an absolute search (the range shouldn't really matter, but it's easier to see if you pick midnight). I tried with 2016-06-27 00:00:00 to 2016-06-28 00:00:00
Verify that the histogram x-axis shows the time range selected (from 00:00 to 00:00 in your time zone). Also see that the URL params are from=2016-06-26T22%3A00%3A00.000Z&to=2016-06-27T22%3A00%3A00.000Z
Add the search histogram to a dashboard
Verify that the search result histogram widget x-axis displays the wrong time
Open the widget information and see that it is using { "from": "2016-06-26T20:00:00.000+0000", "to": "2016-06-27T20:00:00.000+0000", "type": "absolute" } as time range
Absolute time ranges in widgets were getting converted into
ES_DATE_FORMAT, which converts the time into UTC, but loses the time
zone information from the string representation. As the AbsoluteRange
create method parses the date time and tries to keep the time zone
information, that resulted in UTC times being converted into local time.
To fix the problem we avoid using ES_DATE_FORMAT, and use ISO8601
instead.
Fixes#2428
Absolute time ranges in widgets were getting converted into
ES_DATE_FORMAT, which converts the time into UTC, but loses the time
zone information from the string representation. As the AbsoluteRange
create method parses the date time and tries to keep the time zone
information, that resulted in UTC times being converted into local time.
To fix the problem we avoid using ES_DATE_FORMAT, and use ISO8601
instead.
Fixes#2428
Problem description
From the mailing list:
I could reproduce the issue in the current master.
Steps to reproduce the problem
2016-06-27 00:00:00
to2016-06-28 00:00:00
from=2016-06-26T22%3A00%3A00.000Z&to=2016-06-27T22%3A00%3A00.000Z
{ "from": "2016-06-26T20:00:00.000+0000", "to": "2016-06-27T20:00:00.000+0000", "type": "absolute" }
as time rangeEnvironment
The text was updated successfully, but these errors were encountered: