InetIntel / ioda-ui

Other
3 stars 0 forks source link

Fix: resolving bug where timeseries x-axis is ahead by one hour #92

Closed arvinpoddar closed 1 year ago

arvinpoddar commented 1 year ago

Aniket discovered that times between daylight savings in prod are currently one hour ahead of the actual UTC time (when visualized on the chart). After investigation, the issue is likely due to converting a UTC time to ET, then back to UTC.

Screenshot 2023-04-22 at 7 23 01 PM

This fix uses the raw UTC timestamp from the API instead of performing any intermediate conversions. This fix was validated against GTR data and members of OONI (for international correctness).