From 97d144e9b43795284062cab3684b0da58e4fc5ca Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 1 Jun 2020 19:44:28 +0300 Subject: [PATCH] Properly fix countdown() in tags --- backend/src/plugins/Tags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/Tags.ts b/backend/src/plugins/Tags.ts index 43057703..01c95f65 100644 --- a/backend/src/plugins/Tags.ts +++ b/backend/src/plugins/Tags.ts @@ -133,7 +133,7 @@ export class TagsPlugin extends ZeppelinPlugin { }, countdown(toDate) { - const target = this.parseDateTime(toDate); + const target = moment(this.parseDateTime(toDate)); const now = moment(); if (!target.isValid()) return "";