-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing Timezone setting doesn't affect most time presentation #1057
Comments
A community user recently bumped into this (#1507). In their own words: Describe the bug To Reproduce Expected behavior |
Another community user recently bumped into this problem by opening issue #2946. In their own words:
|
In the history of the Zui/Brim app the timezone support has always been somewhat spotty. However, we've come far enough with the Zed data model and Zui's sophistication that I suspect we could do something soon to address this. Below is a summary of the history, current state of things, and what I think we might do. This issue was originally opened when the app was still known as "Brim" and the main (only?) place where the timezone support seemed to be incomplete was with the X-axis of the stacked bar chart. The X-axis is still this way in current Zui. However, things have actually gotten a little worse. In the "Brim" days, the time values in the data table that presents query output took the timezone setting into account, but as part of the changes in #2626 that landed shortly before Zui v1.0.0 was released, the time values in the data table also started being presented in UTC similar to if the values had been presented as ZSON output via As a result, where things stand as of GA Zui v1.0.0 is that there's one place I know of that still changes the time presentation based on the Timezone setting: The Detail panel/window (albeit without the actual inclusion of the timezone/offset and some of the decimal precision dropped, so, even this is somewhat broken). So for example, before taking this screenshot, I've changed my Timezone setting to US/Pacific, and you can see the difference in how it's presented in the two locations. The fact that the Detail panel is able to render it this way implies it may not be too difficult to do the same presentation-layer adjustments in the data table, the X-axis of the stacked bar chart, and the time pins. Furthermore, Zed's time literals support timezone offsets. That means I can enter the time in Zed queries using my local timezone and the backend will make the appropriate conversion. So for instance, finding the same event as I showed above using a Zed What this tells me is that we could also have things like the right-click New Search With Value create the Zed Putting that all together, I think this would give the user the seamless experience of working in an alternate timezone while the Zed backend continues to store and consider all |
Due to the changes in #3127, the previous rendering of the Detail pane that adjusted |
Note to self: When #3139 is merged and this functionality is verified, follow up with user @nnmmaaoo from brimdata/brimcap#352 to see if they're interested in testing this out in a Zui Insiders release. |
Verified with Zui Insiders 1.17.1-insiders.12 which is based on Zui commit 2a2e793. As shown in the attached video, in the Settings menu the Timezone setting actually has effect in the app again, and the Time Format setting has been switched to using strftime formatting directives. When these settings are at their defaults, the app displays the untouched ZSON rendering of Verify.mp4The X axis of the stacked bar chart does not yet change with the timezone setting. A new issue #3141 has been opened to track addressing that in the future. Thanks @jameskerr! |
A community user pointed out:
Indeed this is true. As of Brim commit
76f506a
talking tozqd
commit42103ef
, here's what the UI looks like after importing a test wrccdc pcap:If I change the Timezone Preference from its UTC default to US/Pacific, we can see the values in the
ts
column change, but the X-axis does not.The text was updated successfully, but these errors were encountered: