We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839d9e2 commit 38a8458Copy full SHA for 38a8458
src/CronExpressionParser.ts
@@ -93,7 +93,7 @@ export class CronExpressionParser {
93
*/
94
static parse(expression: string, options: CronExpressionOptions = {}): CronExpression {
95
const { strict = false } = options;
96
- const currentDate = options.currentDate || new CronDate(undefined, 'UTC');
+ const currentDate = options.currentDate || new CronDate();
97
98
expression = PredefinedExpressions[expression as keyof typeof PredefinedExpressions] || expression;
99
const rawFields = CronExpressionParser.#getRawFields(expression, strict);
0 commit comments