Skip to content

Commit

Permalink
Fixed month in 'Nth week day of month' case
Browse files Browse the repository at this point in the history
  • Loading branch information
alordash committed Aug 22, 2021
1 parent c03f522 commit 42f9622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/date-cases/parse-cases/common-parse-cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const parseCases = [
let date = num - day - 1 + 7 * value;

parsedTimes.push(new ParsedTime(DateTypes.target, TimeTypes.dates, date, indexes, context, prevalence, { validMode: ValidModes.certified }));
parsedTimes.push(new ParsedTime(DateTypes.target, TimeTypes.months, month, indexes, context, prevalence, { validMode: ValidModes.certified }));
parsedTimes.push(new ParsedTime(DateTypes.target, TimeTypes.months, month + 1, indexes, context, prevalence, { validMode: ValidModes.certified }));
}
return parsedTimes;
})
Expand Down

0 comments on commit 42f9622

Please sign in to comment.