Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UTC label in the date picker #4448

Merged
merged 2 commits into from
Nov 23, 2020
Merged

Add UTC label in the date picker #4448

merged 2 commits into from
Nov 23, 2020

Conversation

alexpop
Copy link
Contributor

@alexpop alexpop commented Nov 20, 2020

馃敥 Description: What code changed, and why?

After merging #4358 some users might get confused between local time selections (Last 24 hours) and the places where we select/show a day which is UTC.

As can be seen in the below git that Scott uploaded in the UI pull request:

In the same dropdown the user can choose between Last 24 hours in the local timezone to a DAY, without any hint that this day is not in their timezone, but in UTC.

In an effort to make this UTC aspect more clear, I'm submitting this PR with two changes as can be seen in the screenshots below:


During date selection:

pick-day-utc


After day selection from date picker:

day-picked

@netlify
Copy link

netlify bot commented Nov 20, 2020

Deploy preview for chef-automate ready!

Built with commit b10b135

https://deploy-preview-4448--chef-automate.netlify.app

Signed-off-by: Alex Pop <apop@chef.io>
@jonong1972
Copy link

@alexpop yeah, Thats pretty much what I was thinking. just adding that (UTC) to the date after selected.
Looks good to me for MVP.

@jonong1972
Copy link

Actually one thing. Camel Case the "PICK DATE" Maybe "Choose Date"

Signed-off-by: Alex Pop <apop@chef.io>
@alexpop alexpop requested review from jonong1972 and removed request for jonlives November 23, 2020 20:47
Copy link

@jonong1972 jonong1972 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@alexpop
Copy link
Contributor Author

alexpop commented Nov 23, 2020

Thank you Jon for the review, I pushed another commit to replace PICK DATE (UTC) with Choose Date (UTC)

@alexpop alexpop merged commit 600b91b into master Nov 23, 2020
@alexpop alexpop deleted the ap/utc-on-comp-date-picker branch November 23, 2020 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants