Skip to content

fix: correct date axis timezone in hoveranywhere/clickanywhere events#7818

Open
godfengliang wants to merge 1 commit into
plotly:masterfrom
godfengliang:fix-date-p2c-timezone
Open

fix: correct date axis timezone in hoveranywhere/clickanywhere events#7818
godfengliang wants to merge 1 commit into
plotly:masterfrom
godfengliang:fix-date-p2c-timezone

Conversation

@godfengliang

Copy link
Copy Markdown

Fixes #7816.

For date axes, p2c returns a display-time value (local-time components encoded as UTC ms). This caused hoveranywhere and clickanywhere events to report timestamps shifted by the local timezone offset.

Fix: after p2c for date axes, apply timezone correction to convert back to true UTC ms.

@camdecoster

Copy link
Copy Markdown
Contributor

Thanks for the PR! Our team is taking a look at this area of the code, so we'll review your PR in tandem and follow up with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: hoveranywhere / clickanywhere return incorrect timestamps for date axes with local time zones

2 participants