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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): respect 24 hour clock format and allow more choices #20856

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

TCL735
Copy link
Contributor

@TCL735 TCL735 commented Mar 4, 2021

Closes influxdata/ui#768

Identical to change made in InfluxDB Cloud UI. See influxdata/ui#772

  • 'HH' triggers 24 hour clock format
  • Add more choices to allow users to keep 12 hour formats
  • Add meridiem to 12 hour formats

Kapture 2021-03-03 at 16 11 29

@TCL735 TCL735 requested review from danxmoran, a team and jrenee42 and removed request for a team March 4, 2021 00:48
@TCL735 TCL735 changed the title fix: respect 24 hour clock format and allow more choices fix(ui): respect 24 hour clock format and allow more choices Mar 4, 2021
@TCL735
Copy link
Contributor Author

TCL735 commented Mar 4, 2021

@danxmoran @jrenee42 merge conflicts resolved and corresponding UI PR has been merged. Please review.

@TCL735 TCL735 requested a review from a team March 4, 2021 18:59
Copy link
Contributor

@danxmoran danxmoran left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@@ -32,6 +32,7 @@ the endpoint has been removed. Use the `/metrics` endpoint to collect system sta
1. [20819](https://github.com/influxdata/influxdb/pull/20819): Fix Single Stat graphs with thresholds crashing on negative values.
1. [20809](https://github.com/influxdata/influxdb/pull/20809): Fix InfluxDB port in Flux function UI examples. Thanks @sunjincheng121!
1. [20827](https://github.com/influxdata/influxdb/pull/20827): Remove unauthenticated, unsupported `/debug/vars` HTTP endpoint.
1. [20856](https://github.com/influxdata/influxdb/pull/20856): Respect 24 hour clock formats in the UI and allow more choices
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick question: should this be a feature instead of a bug fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it's a bug fix. We've always intended to have the 24 hour clock but it was not properly rendered.

Copy link
Contributor Author

@TCL735 TCL735 Mar 5, 2021

Choose a reason for hiding this comment

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

... and the additional choices are very minor. In case a user had gotten used to the 12 hour clock by picking one of the 24 clock options previously, they can still keep that format by selecting one of the new choices.

@TCL735
Copy link
Contributor Author

TCL735 commented Mar 5, 2021

I have added a commit to include Tables with the fix. This is in keeping with influxdata/ui#780

@TCL735
Copy link
Contributor Author

TCL735 commented Mar 5, 2021

The force push was to get latest from master.

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.

What time is it?
2 participants