fix(core): update

This commit is contained in:
2022-11-21 09:14:32 +01:00
parent d3dd03534a
commit b2a5cda468
23 changed files with 4426 additions and 27030 deletions

View File

@@ -1,4 +1,4 @@
import * as plugins from './smarttime.plugins';
import * as plugins from './smarttime.plugins.js';
export class CronParser {
public cronExpression: string;
@@ -62,7 +62,7 @@ export class CronParser {
if (targetHour < currentHour) {
currentDay = (currentDay + 1) % 30;
}
const targetDay = currentDay;
if (targetDay < currentDay) {
currentMonth = (currentMonth + 1) % 11;
@@ -70,7 +70,7 @@ export class CronParser {
const targetMonth = currentMonth;
if (targetMonth < currentMonth) {
currentYear = (currentYear + 1);
currentYear = currentYear + 1;
}
const targetYear = currentYear;