From affe6a40aa3ec4fefd9da51ac1bea7d68bc5c462 Mon Sep 17 00:00:00 2001 From: Ian <5356223+eminemead@users.noreply.github.com> Date: Thu, 27 Aug 2026 08:16:44 +0800 Subject: [PATCH] fix(chat): inherit explore timezone for charts without time_zone Explain charts omit time_zone and were binned in UTC. Resolve the same explore default as dashboards, keeping an explicit spec zone authoritative and falling back to UTC when no explore is available. --- .../core/messages/chart/ChartBlock.svelte | 47 ++++++++++++++----- .../core/messages/chart/chart-block.spec.ts | 41 ++++++++++++++++ .../chat/core/messages/chart/chart-block.ts | 24 +++++++++- .../get-rill-default-explore-state.spec.ts | 37 +++++++++++++++ .../stores/get-rill-default-explore-state.ts | 5 +- 5 files changed, 139 insertions(+), 15 deletions(-) create mode 100644 web-common/src/features/chat/core/messages/chart/chart-block.spec.ts create mode 100644 web-common/src/features/dashboards/stores/get-rill-default-explore-state.spec.ts diff --git a/web-common/src/features/chat/core/messages/chart/ChartBlock.svelte b/web-common/src/features/chat/core/messages/chart/ChartBlock.svelte index 73ab0c15fa3e..8c6f51eb852f 100644 --- a/web-common/src/features/chat/core/messages/chart/ChartBlock.svelte +++ b/web-common/src/features/chat/core/messages/chart/ChartBlock.svelte @@ -5,10 +5,12 @@