diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index f0bf1572c4..edb0f74e32 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -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);