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: 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:b8dacfb1-7c76-892d-2336-d9cfc8296652 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8FC:3F11E1:499296:6437AF:6A4C2FDE |
| html-safe-nonce | b7a3dbb93fd90e2fc7f964a115cc11a2235a2eddaec6ac3f858870121cbec353 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEZDOjNGMTFFMTo0OTkyOTY6NjQzN0FGOjZBNEMyRkRFIiwidmlzaXRvcl9pZCI6Ijc5NDM5NzA4ODQyNzAyODQ0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc7687484f915b58250707ab786cf36fce70a436fad472b4827460cc193b248c |
| 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 | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| 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 | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width