3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Properly fix countdown() in tags

This commit is contained in:
Dragory 2020-06-01 19:44:28 +03:00
parent 7a79aff5d5
commit 1577c5273e

View file

@ -133,7 +133,7 @@ export class TagsPlugin extends ZeppelinPlugin<TConfigSchema> {
},
countdown(toDate) {
const target = this.parseDateTime(toDate);
const target = moment(this.parseDateTime(toDate));
const now = moment();
if (!target.isValid()) return "";