Skip to content

Commit c16ba7b

Browse files
JAMSUPREMEmattbaileyuk
authored andcommittedNov 2, 2021
Attempt to calculate n for MD
1 parent 44e7941 commit c16ba7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/datetime.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ const dateTime = (function () {
612612
def.integerFormat.mandatoryDigits = def.width.min;
613613
}
614614
}
615-
if (def.component === 'Y') {
615+
if ('YMD'.indexOf(def.component) !== -1) {
616616
// §9.8.4.4
617617
def.n = -1;
618618
if (def.width && def.width.max !== undefined) {

0 commit comments

Comments
 (0)
Please sign in to comment.