Title: `toLocaleTimeString` regression in `v18` · Issue #46571 · nodejs/node · GitHub
Open Graph Title: `toLocaleTimeString` regression in `v18` · Issue #46571 · nodejs/node
X Title: `toLocaleTimeString` regression in `v18` · Issue #46571 · nodejs/node
Description: Version v18.14.0 Platform Darwin MacBook-Pro.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 Subsystem No response What steps will reproduce the bug? Run node Log new...
Open Graph Description: Version v18.14.0 Platform Darwin MacBook-Pro.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 Subsystem No response What steps ...
X Description: Version v18.14.0 Platform Darwin MacBook-Pro.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 Subsystem No response What steps ...
Opengraph URL: https://github.com/nodejs/node/issues/46571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`toLocaleTimeString` regression in `v18`","articleBody":"### Version\n\nv18.14.0\n\n### Platform\n\nDarwin MacBook-Pro.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n1. Run `node`\r\n2. Log `new Date().toLocaleTimeString('en').charCodeAt(7)` to see the char code of the space\r\n3. See the result, it's `8239` \r\n\r\n\r\n\n\n### How often does it reproduce? Is there a required condition?\n\n100% of runs\n\n### What is the expected behavior?\n\nThe code of the space here should supposably be `32`, at least that's what I see when running in Chrome 109.0.5414.119 and Node v16.19.0.\n\n### What do you see instead?\n\nThe code of the space is - `8239`\n\n### Additional information\n\nThis causes issues when running hydration in NextJS.","author":{"url":"https://github.com/chernodub","@type":"Person","name":"chernodub"},"datePublished":"2023-02-08T14:43:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/46571/node/issues/46571"}
| 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:afd443c1-e153-5793-f65d-0761e75072c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE20:1728DE:46F6723:5D78CD6:6992F3EB |
| html-safe-nonce | 9a041fce27533074e4174dddddcadab7e65167f517772eb0d960cee7d3a97ba5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTIwOjE3MjhERTo0NkY2NzIzOjVENzhDRDY6Njk5MkYzRUIiLCJ2aXNpdG9yX2lkIjoiMTIyNTQ2NjMyMTUwNjA3MTUzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bad54947fc8326ef87621e43f4cec40a4a760c05253ae5287b3d876cd0b70787 |
| hovercard-subject-tag | issue:1576248346 |
| 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/46571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45f83c5c4d8e597a92eac5b76828cec1c098ed6096f6629161a1f88308fd8997/nodejs/node/issues/46571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45f83c5c4d8e597a92eac5b76828cec1c098ed6096f6629161a1f88308fd8997/nodejs/node/issues/46571 |
| og:image:alt | Version v18.14.0 Platform Darwin MacBook-Pro.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64 Subsystem No response What steps ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chernodub |
| hostname | github.com |
| expected-hostname | github.com |
| None | 348cc0594c4976eb4050dc9547ecf65057ee89a2b7ed0652b983b9b539f57145 |
| 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 | ce72317238c729e85014e1d867fd30d09b7f94ba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width