Skip to content

Commit

Permalink
Temporal: Adjust era code of Japanese pre-Meiji era
Browse files Browse the repository at this point in the history
As of the current state of the Intl Era and Month Codes proposal,
https://tc39.es/proposal-intl-era-monthcode/#sec-temporal-canonicalizeeraincalendar
the canonical name of this era is "japanese".

See: tc39/proposal-temporal#2901
  • Loading branch information
ptomato committed Sep 10, 2024
1 parent e60e435 commit c5c1532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/staging/Intl402/Temporal/old/japanese-before-era.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ date = Temporal.PlainDate.from({
calendar: "japanese"
});
assert.sameValue(`${ date }`, "1868-01-01[u-ca=japanese]");
assert.sameValue(date.era, "ce");
assert.sameValue(date.era, "japanese");
assert.sameValue(date.eraYear, 1868);

0 comments on commit c5c1532

Please sign in to comment.