kokhlo opened a new pull request, #43960:
URL: https://github.com/apache/superset/pull/43960

   ### SUMMARY
   
   `normalizeTimestamp` relabels any matching timestamp to a bare `Z`, which 
also hits strings that already carry an explicit ISO offset (`+03:30`, 
`-05:00`): the regex eats the offset and the wall-clock time is reinterpreted 
as UTC, shifting the displayed instant by the offset. This is the ClickHouse 
`DateTime64(3, 'Asia/Tehran')` regression from #43927: the backend and 
clickhouse-connect deliver wall-clock values with the column offset intact 
(verified end-to-end on 6.1.0 — JSON reaches the client as 
`2026-01-15T12:30:00+03:30`), but `DateWithFormatter`/`series.ts` then pass it 
through `normalizeTimestamp` and the offset is destroyed before `new Date(...)`.
   
   Timezone-aware strings are now returned untouched (their instant is already 
pinned); timezone *names* (`UTC`, `Europe/Helsinki`) are still stripped the 
historic way.
   
   Fixes #43927 (display half; the Hours Offset schema half is covered by 
#43932).
   
   ### BEFORE/AFTER
   
   ```js
   normalizeTimestamp('2026-01-15T12:30:00+03:30')
   // before: '2026-01-15T12:30:00Z'  (wall-clock relabeled as UTC, instant 
shifted 3.5h)
   // after:  '2026-01-15T12:30:00+03:30' (untouched)
   ```
   
   ### TESTING INSTRUCTIONS
   
   `npx jest 
superset-ui-core/test/time-format/utils/normalizeTimestamp.test.ts` — new case 
covers `Z` / `±hh:mm` / `±hhmm` offsets; all legacy cases unchanged.
   
   ### ADDITIONAL INFORMATION
   
   - [x] Has associated issue: #43927
   - [ ] Changes UI interactions — fixes the displayed value only
   - [ ] Includes DB migration — no
   - [ ] Requires superset.beupdated — no


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to