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

Change some dashboards to browser local time #1685

Merged
merged 2 commits into from
Jun 18, 2021
Merged

Change some dashboards to browser local time #1685

merged 2 commits into from
Jun 18, 2021

Conversation

Ed-M72
Copy link
Contributor

@Ed-M72 Ed-M72 commented Jun 4, 2021

With the migration to Grafana 7.4 we now have the option of using the browser locale, and therefore catering for peoples local date/time format, aka they should now support the UK date format. #1692

The following dashboards have been updated to reflect this:
Updates,
States
Stastistics.

There are three further dashboards which require updating, they are:
Charges
Drives
Vampire Drain,

However these are more complicated and require the panels to be upgraded to a newer version, so will be dealt with soon.

@Dulanic
Copy link
Collaborator

Dulanic commented Jun 6, 2021

Am I wrong or didn't grafana already convert epoch time to local browser time /w $__time(column)? I'm not questioning your approach, I am genuinely curious :)

@Ed-M72
Copy link
Contributor Author

Ed-M72 commented Jun 6, 2021

Am I wrong or didn't grafana already convert epoch time to local browser time /w $__time(column)? I'm not questioning your approach, I am genuinely curious :)

Yes it did, however Grafana was inconsistent and didn't use this approach across all its plugins. If you look at my previous fix for this I was restricted to Date|Time_US & DateTime ISO. Luckily this approach is no longer needed with the move to the latest version of Grafana.

@Ed-M72 Ed-M72 changed the title Change dashboards to local time Change some dashboards to local time Jun 15, 2021
@Ed-M72 Ed-M72 changed the title Change some dashboards to local time Change some dashboards to browser local time Jun 16, 2021
Copy link
Collaborator

@adriankumpf adriankumpf 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. Thank you!

@adriankumpf adriankumpf merged commit cdcb947 into teslamate-org:master Jun 18, 2021
adriankumpf pushed a commit that referenced this pull request Jun 18, 2021
Co-authored-by: emellodew <64371467+emellodew@users.noreply.github.com>
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.

3 participants