-
Notifications
You must be signed in to change notification settings - Fork 60
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
[Widgets] Timezone support via timeZone
#2663
Labels
3 pts
Assigned to HM
Work that is being assisted on by HM
Current sprint
enhancement
New feature or request
Comments
diehbria
added
enhancement
New feature or request
Assigned to HM
Work that is being assisted on by HM
Current sprint
3 pts
labels
Mar 7, 2024
Questions:
|
updated ticket, no changes required for table, additional clarification added for other widgets. |
Updated ticket with expected API behavior to clarify. |
jmbuss
changed the title
[Widgets] Timezone support via
[Widgets] Timezone support via Mar 19, 2024
getTimeOffset
timeZone
Chandru-HM
pushed a commit
to Chandru-HM/iot-app-kit
that referenced
this issue
May 8, 2024
Chandru-HM
pushed a commit
to Chandru-HM/iot-app-kit
that referenced
this issue
May 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3 pts
Assigned to HM
Work that is being assisted on by HM
Current sprint
enhancement
New feature or request
This task is to add timezone support for the shared widgets of IoT App Kit.
Add a new optional property,
timeZone?: string;
. This will be used to format dates into a different timezone than the where the one the user is in.Implementation details:
We want to use https://date-fns.org/ to format dates.
How to handle timezones in echarts - apache/echarts#14453
How to handle dates in our React components -
Default: the user's current timeZone as provided by the browser.
Intl.DateTimeFormat().resolvedOptions().timeZone
For KPI, Status, make sure the bottom timestamp displayed on the widget reflects the updated timezone
For resource explorer, ensure that all places which display timestamps of data as a result of searches, reflects the timezone offset.
For XY Plot, ensure the bottom timestamp displayed reflects the timezone offset, the data point tooltip, as well as the X-Axis labels, and the timestamps shown within the legend and the trend cursor column headers.
Expected API behavior
timeZone
is undefined, use browser timeZone.timeZone
is "America/Denver", The date should be display in Mountain Daylight Time (GMT-6).Acceptance criteria
The text was updated successfully, but these errors were encountered: