-
Notifications
You must be signed in to change notification settings - Fork 84
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
Support new time zone (local/server time) feature released in 2023.7 #579
Comments
This particularly annoying if you have charts that use end of day / week / month as it currently uses the browser local time and yields confusing results. |
+1 |
I am guessing that apexcharts-card/src/apexcharts-card.ts Lines 1444 to 1463 in 1b63c0f
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
bump to keep alive |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Still an issue. |
Discovered this today while I am in Asia and my home is in Europe. |
Under my HA user profile I have apex_config:
xaxis:
labels:
datetimeUTC: true |
Since I do not live in the UTC (GMT+0) time zone, this does not make sense for me. |
I've set |
+1 |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
+1 still an issue. |
+1 still an issue. |
Working on it, but it's quite painful as the apexcharts library only supports displaying in browser's localtime or UTC. But I'll get there eventually. |
## [2.1.0-dev.1](v2.0.4...v2.1.0-dev.1) (2024-07-04) ### Features * Add change type for statistics ([#555](#555)) ([608fbe5](608fbe5)), closes [#552](#552) * **statistics:** add weekly statistics period ([#680](#680)) ([e923126](e923126)) * support for server time ([55c8f97](55c8f97)), closes [#709](#709) [#579](#579)
🎉 This issue has been resolved in version 2.1.0-dev.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Please test this extensively with your setup as I might have missed edge cases ! |
🎉 This issue has been resolved in version 2.1.0-dev.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This is working well for me so far, thanks! |
Works well here too. Much much better experience. Thanks! |
@RomRider it works great, I've been waiting so long for this update, many thanks! Here is the same graph comparison from the original issue report, the Apex chart correctly displays the server time, brilliant! |
## [2.1.0](v2.0.4...v2.1.0) (2024-07-09) ### Features * Add change type for statistics ([#555](#555)) ([608fbe5](608fbe5)), closes [#552](#552) * **locales:** Support for new locales ([2fca527](2fca527)) * **series:** Direct support for dashed lines ([29aad77](29aad77)), closes [#413](#413) * **series:** hide specific serie in legend with `in_legend: false` ([12cb893](12cb893)), closes [#74](#74) * **series:** support for `monotoneCubic` curves ([998cb99](998cb99)) * **series:** Support for stack group of columns ([2935b4e](2935b4e)), closes [#673](#673) [#550](#550) * **statistics:** add weekly statistics period ([#680](#680)) ([e923126](e923126)) * support for server time ([55c8f97](55c8f97)), closes [#709](#709) [#579](#579) ### Bug Fixes * `extremas` with `time_delta` would generate wrong results ([f7ab3e8](f7ab3e8)), closes [#713](#713) * display was wrong when using server time + serie offset ([84357f9](84357f9)), closes [#579](#579) * **series:** fix `in_legend` for apexcharts.js v3.50.0 ([221b0a5](221b0a5))
Not sure if this is my "homemade" issue, or a general one. I have a apex card for Tibber prices forecast. Since the update it now correctly uses the server time in the card, but the chart is placed wrong. It should starting the graph from midnight, but it does start much later...
|
Because
|
HA have just released an awesome new feature in 2023.7 which provides the option to select how you display time on the UI, either using the local time (default) or the server time (new). This is incredibly useful if the HA instance is in another country/time zone or if you are travelling abroad.
However, my initial testing suggests this feature isn't supported by this custom card. I show an example below showing the Apex Chart and HA History card using the server time option. The HA History (bottom) card is correctly displaying the server time, whereas the Apex Chart is still using the local client time.
The text was updated successfully, but these errors were encountered: