Skip to content

Commit

Permalink
Attempt to calculate n for MD
Browse files Browse the repository at this point in the history
  • Loading branch information
JAMSUPREME authored and mattbaileyuk committed Nov 2, 2021
1 parent 44e7941 commit c16ba7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ const dateTime = (function () {
def.integerFormat.mandatoryDigits = def.width.min;
}
}
if (def.component === 'Y') {
if ('YMD'.indexOf(def.component) !== -1) {
// §9.8.4.4
def.n = -1;
if (def.width && def.width.max !== undefined) {
Expand Down

0 comments on commit c16ba7b

Please sign in to comment.