VSA Total time + Stage time popover show incorrect dates

Background

From this discussion raised by @lvanc :

One thing that I noticed (which seems like a bug) it that the date on the popover is not the same as what is seen in the X-axis. See screenshot:

Screenshots

Melbourne, Australia Honolulu, Hawaii
Screenshot_2025-04-30_at_09.36.23 Screenshot_2025-04-29_at_13.38.06

Steps to reproduce

  1. Set your computer's timezone to Melbourne, Australia (UTC+10)
  2. Navigate to https://gitlab-org.gitlab.io/gitlab/storybook/?path=/docs/ee-analytics-cycle-analytics-components-overview-chart--docs
  3. Hover over a date, observe the date in the popover
  4. Set your timezone to Honolulu, Hawaii (UTC-10 - usually ~20hrs difference to melbourne)
  5. Refresh storybook and hover over the same date https://gitlab-org.gitlab.io/gitlab/storybook/?path=/docs/ee-analytics-cycle-analytics-components-overview-chart--docs

Possible solution

  • The tooltip should reflect the same date that appears in the X-Axis (looks like UTC)
    • Update the Total time chart
    • Update the Stage time chart
Edited by 🤖 GitLab Bot 🤖