Skip to content

Firefox doesn't support some calendars for Temporal.PlainDate.withCalendar()#26758

Merged
caugner merged 8 commits intomdn:mainfrom
dletorey:39303-ship-temporal
May 13, 2025
Merged

Firefox doesn't support some calendars for Temporal.PlainDate.withCalendar()#26758
caugner merged 8 commits intomdn:mainfrom
dletorey:39303-ship-temporal

Conversation

@dletorey
Copy link
Contributor

@dletorey dletorey commented May 9, 2025

Summary

  • added partial implementation note for the withCalendar method in PlainDate

Test results and supporting details

  • tested all the different calendars in this codepen
  • Tested in:
    • Firefox Beta 139
    • Firefox Nightly 140

Related issues

@github-actions github-actions bot added data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:xs [PR only] 0-6 LoC changed labels May 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner caugner self-requested a review May 9, 2025 12:18
@caugner caugner changed the title added unsupported calendars for withCalendar method Firefox doesn't support some calendars for Temporal.PlainDate.withCalendar() May 9, 2025
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall.

However:

  • The note is missing chinese and dangi (unless these were re-enabled in a different bug?).
  • Is there any other method affected by this?

"version_added": "139"
"version_added": "139",
"partial_implementation": true,
"notes": "The following calendars are not yet support `islamic`, `islamic-rgsa` and `islamic-umalqura`. See [bug 1950425](https://bugzil.la/1950425)."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"notes": "The following calendars are not yet support `islamic`, `islamic-rgsa` and `islamic-umalqura`. See [bug 1950425](https://bugzil.la/1950425)."
"notes": "Calendars `chinese`, `dangi`, `islamic`, `islamic-rgsa` and `islamic-umalqura` are not available. See [bug 1950425](https://bugzil.la/1950425)."

Copy link
Contributor Author

@dletorey dletorey May 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caugner
I have test every method and this the only one that is affected.
I have also tested every calendar type and the only ones that don't work are the ones that I mentioned.
Comment 4 explains where these were corrrected co the name of the bug is the issue here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, looks like mozilla/gecko-dev@4618744 as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1954138 is the explanation:

Bug 1954138 - Part 9: Re-enable Chinese and Dangi calendars even when not Nightly.

@github-actions github-actions bot added size:s [PR only] 7-24 LoC changed and removed size:xs [PR only] 0-6 LoC changed labels May 9, 2025
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just an optional suggestion to link to both relevant bugs.

(Feel free to dismiss, I will merge before the next BCD release on Tuesday.)

dletorey and others added 4 commits May 12, 2025 16:51
@caugner caugner merged commit e6cc62c into mdn:main May 13, 2025
6 checks passed
@dletorey dletorey deleted the 39303-ship-temporal branch May 14, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:js Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript size:s [PR only] 7-24 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants