Title: `Temporal` behavior is not spec-compliant · Issue #63145 · nodejs/node · GitHub
Open Graph Title: `Temporal` behavior is not spec-compliant · Issue #63145 · nodejs/node
X Title: `Temporal` behavior is not spec-compliant · Issue #63145 · nodejs/node
Description: Version 26.0.0 Platform Darwin (redacted host name) 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:36 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What steps will reproduce the bug? bugs for is...
Open Graph Description: Version 26.0.0 Platform Darwin (redacted host name) 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:36 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What s...
X Description: Version 26.0.0 Platform Darwin (redacted host name) 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:36 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What s...
Opengraph URL: https://github.com/nodejs/node/issues/63145
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Temporal` behavior is not spec-compliant","articleBody":"### Version\n\n26.0.0\n\n### Platform\n\n```text\nDarwin (redacted host name) 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:36 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8103 arm64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nbugs for `iso8601` calendar which are already fixed in upstream:\n\n```javascript\n// 1.\nnew Temporal.Duration(0, 1, 0, 0, 1).round({ smallestUnit: 'months', roundingMode: 'expand', relativeTo: new Temporal.PlainDate(2020, 1, 31) }).toString();\n// 2.\nTemporal.Instant.from('2020-01-01T00:00:00.1234567890Z');\n```\n\nincorrect behavior for non-ISO calendars:\n\n```javascript\n// 3.\nTemporal.PlainDate.from({ year: 2020, month: 1, day: 40, calendar: 'gregory' });\n// 4.\nTemporal.PlainDate.from({ year: -1, month: 1, day: 1, calendar: 'gregory' });\n// 5.\nTemporal.PlainDate.from({ year: 5786, monthCode: 'M05L', day: 1, calendar: 'hebrew' });\n// 6.\nTemporal.PlainDate.from('2026-05-01[u-ca=chinese]').year;\n```\n\n### How often does it reproduce? Is there a required condition?\n\nalways, without any conditions\n\n### What is the expected behavior? Why is that the expected behavior?\n\n1. `\"P2M\"`\n2. `RangeError` is thrown\n3. `RangeError` is not thrown\n4. `RangeError` is not thrown\n5. `RangeError` is not thrown\n6. 2026\n\n### What do you see instead?\n\n1. `\"PT0S\"`\n2. `RangeError` is not thrown\n3. `RangeError` is thrown\n4. `RangeError` is thrown\n5. `RangeError` is thrown\n6. 4663\n\n### Additional information\n\nI tested Temporal test cases in test262, and Node.js failed for many cases, mainly due to wrong behavior for non-ISO calendars. I suspect this is because Node.js uses outdated temporal_rs and ICU4X (but I haven't confirmed my guess yet).","author":{"url":"https://github.com/fabon-f","@type":"Person","name":"fabon-f"},"datePublished":"2026-05-06T07:41:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/63145/node/issues/63145"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:84af344e-ede9-7569-a10b-e6423a5a3a8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA74:37182F:2606D94:3639B26:6A4BF38A |
| html-safe-nonce | 18446ebd9cdd6cfdc411b52100aa5f715b9d0473061dd02ddb9c72e031a78058 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTc0OjM3MTgyRjoyNjA2RDk0OjM2MzlCMjY6NkE0QkYzOEEiLCJ2aXNpdG9yX2lkIjoiMzM1ODQ5Nzk1NDMyMjk2OTQ4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9dc06f0c61f1497472ea7b5556a5ba4e67620ecf45c2235b49e40d3916333811 |
| hovercard-subject-tag | issue:4389629252 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/63145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0cbefc798bdcd64faeb216b4d3c8a9239a3602bc4fd55f96a4a0fb6580449be/nodejs/node/issues/63145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0cbefc798bdcd64faeb216b4d3c8a9239a3602bc4fd55f96a4a0fb6580449be/nodejs/node/issues/63145 |
| og:image:alt | Version 26.0.0 Platform Darwin (redacted host name) 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:32:36 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fabon-f |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10bf439485be3d26a6ab4aa27764288fcc5ef6b9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width