TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

En-CA switching to M/d/yy from y-MM-dd?

2 点作者 jagthebeetle超过 2 年前

1 comment

jagthebeetle超过 2 年前
I noticed some locale-formatting tests breaking in Chrome 110 and traced this back to a change in Unicode CLDR 42.<p>You can find this by searching for &quot;y-MM-dd&quot; in the linked changelog.<p>AIUI, the official recommendation is to use y-MM-dd, and M&#x2F;d&#x2F;yy is particularly ambiguous in Canada, at least relative to the US.<p>Thought I&#x27;d float in case anyone knows more, or has been using the &quot;en-CA&quot; trick to get American-ish dates with YYYY-MM-DD short dates.