Skip to content

Commit

Permalink
fix(#366): always use Dates not numbers for custom bar timestamps (#…
Browse files Browse the repository at this point in the history
…368)

Co-authored-by: Yotam Berkowitz <[email protected]>
  • Loading branch information
smee and yotamberk authored Mar 11, 2020
1 parent 528cd7e commit a8575d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ class Core {
*/
addCustomTime(time, id) {
const timestamp = time !== undefined
? util.convert(time, 'Date').valueOf()
? util.convert(time, 'Date')
: new Date();

const exists = this.customTimes.some(customTime => customTime.options.id === id);
Expand Down

0 comments on commit a8575d7

Please sign in to comment.