fix(core): update
This commit is contained in:
parent
25f7ad37ae
commit
3a110c9fd9
@ -125,4 +125,8 @@ export class ExtendedDate extends Date {
|
|||||||
public format (formatArg: string) {
|
public format (formatArg: string) {
|
||||||
return plugins.dayjs(this.getTime()).format(formatArg);
|
return plugins.dayjs(this.getTime()).format(formatArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public isToday () {
|
||||||
|
return plugins.dayjs(this.getTime()).isToday();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,5 +8,8 @@ export { lik, smartdelay, smartpromise };
|
|||||||
// third parties
|
// third parties
|
||||||
import croner from 'croner';
|
import croner from 'croner';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
import isToday from 'dayjs/plugin/isToday';
|
||||||
|
|
||||||
|
dayjs.extend(isToday);
|
||||||
|
|
||||||
export { croner, dayjs };
|
export { croner, dayjs };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user