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.

Datetime line brush displays wrong 1:00AM instead of midnight

See original GitHub issue

Bug report

Codepen

I have modified the brush chart codepen. The only things I changed are: the interval of the datapoints (from 86400 to 600), the start date is set to 2020-03-31T22:00:00+02:00, and the tooltip format has ben changed to display hours instead of dates.

https://codepen.io/fracz/pen/jOPJLoO

Explanation

When you open the codepen, the midnight date is displayed correctly as a 1 Apr.

image

Then, if you move the brush selection slightly to the right the midnight label is being set to 1:00.

image

If you keep moving the selection and pass the next hour, the label is getting back to 0:00 (but not 1 Apr) in the codepen:

image

The tooltip always shows the correct data even when the x-label are messed up.

image

Not a big deal, hovever in my application the labels are not fixed when moving right, so all of the labels are shifted by one hour, and it is much bigger problem. Could not reproduce such behavior in the codepen, though.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
thorleifjacobsencommented, Oct 15, 2021

Have you been able to look at this? We also experience this using only 24H time it skips 00:00 when zoomed in. 😃

2reactions
junedchhipacommented, Mar 31, 2020

Yeah, I can see the bug in your modified codepen. I will take a look soon, thanks for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

batch file - Time is set incorrectly after midnight - Stack Overflow
The environment variable DateTime is reformatted using string substitutions to get the date/time string in format [dd-MM-yyyy]-[HH-mm] resulting ...
Read more >
Bug: Possible cause of mystery date problems: Time...
The first one will tell you if the date picker is incorrectly storing the time, if it's OK it will show midnight. The...
Read more >
Dates without a time component are searched at midnight ...
Resolving The Problem. The lastcompdate attribute is of maxtype DATE and it has no time component (the time defaults to midnight).
Read more >
Untitled
Saharsh solutions, Gli spietati inizio, N new line t tab space! ... Deere liquifire for sale, Midnight romeo mp3 download, Marta hermida rivas?...
Read more >
COUNCIL AGENDA REPORT MEETING DATE: 10/6/08 lTEMNO ...
Neither the subject property nor the applicant has a history of complaints or non- ... don't get back to Los Gatos until sometime...
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