visjs / vis-timeline

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

Bug with 0 time for CustomTime #358

Closed vavdav closed 4 years ago

vavdav commented 4 years ago

I found issue when adding custom time with 0 value. It will incorrectly set time to new Date().

It is because of this line: https://github.com/visjs/vis-timeline/blob/master/lib/timeline/component/CustomTime.js#L44

yotamberk commented 4 years ago

nice catch! Can you submit a PR with a fix for this?

vis-bot commented 4 years ago

:tada: This issue has been resolved in version 7.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: