-
Notifications
You must be signed in to change notification settings - Fork 45
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
SaltGUI shows wrong start time in job list #430
Conversation
Your statement is most probably correct. |
The following datetime instances are already recognized by SaltGUI.
Note that [event]._stamp already has some timezone logic applied. Note that any datetimes inside any payload data will not be adjusted for timezone. Idea: can we show the date with a tooltip that shows the datetime in alternative timezones? |
I dont understand, why not show the datetime for the proper timezone in the table? Since salt is showing the correct datetime for my timezone in the output, I would expect that SaltGUI is receiving this value and thus can show the same string. |
that is the intention. |
Ahh I see, yes beeing able to see the original UTC value is a good idea. |
Can I help you with this? |
Since all other work on SaltGUI has been handled now, this is what I'm working on now. |
The first implementation will probably not involve a tooltip to show an alternative value. Instead, the existing function As noted before, the existing logic for the formatting of event timestamps with be removed. |
Works for me |
(the issue is converted to a PR from my repo)
@achimmihca can you take a look at this intermediate result? |
dc8434f
to
fa6980a
Compare
still working on lower priority stuff in the same area:
I cannot do much work next week, so progress on the extra items will be slow... |
I just tested this. I get a tooltip that shows the UTC and local time. What I expected is: The column shows the local time and the tooltip optionally the utc time as well when I set it to But still: local time in tooltip is correct. Thanks! |
@achimmihca |
d4fac3f
to
d121bfb
Compare
14a1ae9
to
20fb3ed
Compare
20fb3ed
to
3308d88
Compare
@achimmihca Can you please try again? |
@achimmihca |
@erwindon , I don't see any change? Did you push anything? |
Kudos, SonarCloud Quality Gate passed!
|
ehh, no, somehow missed that, done that now... |
Now its working 😉 . |
Describe the bug
The "Start Time" column of Jobs in SaltGUI is off by one hour.
This is probably related to the unsed time zone.
The time is shown correctly in the Salt output. Thus, I think the problem is with SaltGUI.
To Reproduce
sudo timedatectl set-timezone Europe/Paris
2022, Mar 14 09:36:44.728128
, which is off by approx. one hourExpected behaviour
The "Start Time" column in SaltGUI should show the same value as the output from salt.
Is there maybe a time zone setting in SaltGUI to fix this?