Skip to content

Commit 7bbe0e3

Browse files
committed
Polyfill: Don't print era in PlainMonthDay formatting
See the change in #3175 for details. `era` should not be added to the default options for PlainMonthDay, because [[era]] isn't copied in step 12.b of GetDateTimeFormat when defaults is MONTH-DAY. The spec is correct here, this brings the reference code into alignment with it.
1 parent d1230c7 commit 7bbe0e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

polyfill/lib/intl.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ function monthDayAmend(originalOptions) {
445445
full: { month: 'long', day: 'numeric' }
446446
};
447447
const options = amend(originalOptions, {
448+
era: false,
448449
year: false,
449450
hour: false,
450451
minute: false,

0 commit comments

Comments
 (0)