question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent timezone in line charts

See original GitHub issue

I enabled privacy.resistFingerprinting in Firefox, so the browser timezone is always UTC. The table view displays timestamps in the browser timezone instead of the timezone selected from the dropdown in the upper right corner. X-axis of line charts are also displayed in the browser timezone.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
l2dycommented, Jan 19, 2019

Here the .toDate() function erased the timezone information and converted the moment into browser (system) timezone, because the Date object is always in the time zone of the browser. So when D3 formats this Date it could only use the browser timezone.

https://github.com/allegro/turnilo/blob/bd73d4c4b172603169728658d23a8607e564684d/src/client/components/line-chart-axis/line-chart-axis.tsx#L69

https://github.com/allegro/turnilo/blob/bd73d4c4b172603169728658d23a8607e564684d/src/client/components/line-chart-axis/line-chart-axis.tsx#L56-L59

0reactions
adrianmrozcommented, Feb 13, 2019

Closed via #317

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solve the inconsistent time zone problem in the container
During the use of containers, time zone inconsistency in containers will cause trouble when the system time is used for operations, ...
Read more >
Time data with irregular intervals | Highcharts.com
Line chart with 3 lines. ... This demo visualizes a data set with irregular time intervals. Highcharts comes with sophisticated functionality for dealing...
Read more >
Highcharts - Line chart is using wrong TimeZone
I have a situation where I need to display the exact time received from server in the Highchart. The datetime should not change...
Read more >
The dates and times in my questions and charts are wrong
Your question or chart is comparing or sorting values with inconsistent or missing time zones. For example, if a flight's departure and arrival...
Read more >
Study/Price Overlay Time Zones Not In Sync - Support ... - Sierra Chart
This causes inconsistent results depending on the global time zone setting. ... the wrong place in time, and there is a hockey stick...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found