fix(core): update

This commit is contained in:
Philipp Kunz 2020-10-05 22:28:40 +00:00
parent 25f7ad37ae
commit 3a110c9fd9
2 changed files with 7 additions and 0 deletions

View File

@ -125,4 +125,8 @@ export class ExtendedDate extends Date {
public format (formatArg: string) {
return plugins.dayjs(this.getTime()).format(formatArg);
}
public isToday () {
return plugins.dayjs(this.getTime()).isToday();
}
}

View File

@ -8,5 +8,8 @@ export { lik, smartdelay, smartpromise };
// third parties
import croner from 'croner';
import dayjs from 'dayjs';
import isToday from 'dayjs/plugin/isToday';
dayjs.extend(isToday);
export { croner, dayjs };