iot-app-kit icon indicating copy to clipboard operation
iot-app-kit copied to clipboard

feat: adding timezone support to dashboard/widgets

Open dpportet opened this issue 7 months ago • 0 comments

Overview

  • Completing implementation for https://github.com/awslabs/iot-app-kit/issues/2663
  • Adding dashboard and widget level support for timeZone. Adding timeZone as an optional param to Dashboard, Line chart and KPI. If this param is provided, times will be displayed in that timeZone instead of the browsers time zone. If none is provided, it will default to use the users browser time zone.
  • Affected components:
    • Line Chart
      • Trend Cursor
      • Legend
      • Tooltip
      • X axis label
    • Asset explorer
    • KPI

Verifying Changes

  • Create a dashboard component or widget and see if the times are displayed in your local timezone. The line chart shows the UTC offset which can be useful to test this. Provide timeZone as a prop and validate the new timeZone is used.

https://github.com/user-attachments/assets/11b39d7c-23bd-413e-a52c-69bb748212be

Legal

This project is available under the Apache 2.0 License.

dpportet avatar Aug 01 '24 00:08 dpportet