diff --git a/src/cron-parser.ts b/src/cron-parser.ts index 28decb51..5b256833 100644 --- a/src/cron-parser.ts +++ b/src/cron-parser.ts @@ -62,7 +62,7 @@ const weekdayConstraint: IConstraint = { const timeNicknames: Record = { '@yearly': '0 0 1 1 *', '@annually': '0 0 1 1 *', - '@monthly': '0 0 1 1 *', + '@monthly': '0 0 1 * *', '@weekly': '0 0 * * 0', '@daily': '0 0 * * *', '@hourly': '0 * * * *', diff --git a/test/cron-parser.test.ts b/test/cron-parser.test.ts index cbd890d5..4de06455 100644 --- a/test/cron-parser.test.ts +++ b/test/cron-parser.test.ts @@ -349,7 +349,7 @@ describe('parseCronExpression', () => { test('Should parse @monthly', () => { expect(parseCronExpression('@MONTHLY')).toStrictEqual( - parseCronExpression('0 0 1 1 *'), + parseCronExpression('0 0 1 * *'), ) })