From 9f17f63eee2989adacb55483f9fd6cec647f7ab4 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 8 Aug 2021 13:46:52 +0200 Subject: Prepared Timeline to work with StatusBar --- derelict.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/derelict.js b/derelict.js index cb6d399..48b314f 100644 --- a/derelict.js +++ b/derelict.js @@ -31,8 +31,14 @@ class Timeline { } setTo(time) { + if (!time instanceof Date) + time = new Date(time) this.current = time } + + getCurrentTime() { + return this.current.toLocaleString() + } } class Grid { -- cgit v1.1