visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.88k stars 315 forks source link

[BUG] Incorrect start/end date after version 6.2.0 up to latest (7.3.4) #384

Open justinbeatz opened 4 years ago

justinbeatz commented 4 years ago

There is an issue added after version 6.2.0 that makes vis-timeline behave differently when passing Date objects (converted from SQL format YYYY-MM-DD hh:mm:ss) check the examples here:

6.1.1 https://codesandbox.io/s/timeline-v6-1-1-dhq87-5dp84

6.2.0 https://codesandbox.io/s/timeline-v6-2-0-dhq87-gdgue

You can change to the latest version and uncomment the respective imports and check that the bug is there. Also if you zoom the timeline, there is a bug showing the dates in incorrect position, possibly related to this onehttps://github.com/visjs/vis-timeline/issues/261

Library: Vis timeline Browser: Firefox 74.0, Chrome Version 80.0.3987.132, OS: Linux

calope03 commented 4 years ago

Hello, I have that problem, in which version does it not happen? In 6.2.0? or lower?

strazto commented 4 years ago

This might be a duplicate of #663 , which has been fixed, but it's hard to tell because your codesandbox examples seem to have expired. @justinbeatz can you please share the actual code on github so we can reprex?

justinbeatz commented 4 years ago

The code is still in codesandbox: 6.1.1 https://codesandbox.io/s/timeline-v6-1-1-dhq87-5dp84

6.2.0 https://codesandbox.io/s/timeline-v6-2-0-dhq87-gdgue

I need to create a new one with the latest version and test it, I kind of busy but will try to do it in this week and update this issue.