Properly fix countdown() in tags

This commit is contained in:
Dragory 2020-06-01 19:44:28 +03:00
parent 5a2948d8a9
commit 97d144e9b4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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 "";