Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] medium short time pattern different style in TimePatterns FormatData_zh.java #34

Open
mamh2021 opened this issue Oct 22, 2020 · 1 comment

Comments

@mamh2021
Copy link

Description
在文件FormatData_zh.java 中
TimePatterns 下面的 时间风格 不一致, medium 模式采用了24小时样式, 而其他的 full, long, short 都采用了12小时样式.
如下:
{ "TimePatterns",
new String[] {
"ahh'\u65f6'mm'\u5206'ss'\u79d2' z", // full time pattern
"ahh'\u65f6'mm'\u5206'ss'\u79d2'", // long time pattern
"H:mm:ss", // medium time pattern
"ah:mm", // short time pattern
}
},
通过查看其他 中文语言的的 台湾/ 香港 / 新加坡 发现他们的都是 用 ah / ahh 来表示的.
不知道你们怎么看待这个问题?

其实这个时间格式 官方的 书面的 更多是选择24小时制的, 口语更偏向12小时制的.
也希望能把这个默认的 格式统一切换到24小时制.(其他国家, 例如日本 这里默认就是24小时制的)
切换24小时制 不可取的话,至少把 medium 格式也能统一 为 ahh.

@luchsh
Copy link
Contributor

luchsh commented Nov 17, 2020

这一点上Dragonwell应该是和上游OpenJDK发行版保持一致的 (可以验证下),这类改动应该尽量推动到OpenJDK上游,在下游做修改很容易造成兼容性问题。
Dragonwell的目标应该只是提供额外的增强特性,而不是改变现有行为(我说的有问题的话,阿里的各位道友可以纠正我哈)。

关于改法,我个人认为有两个点可能需要关注:

  • 是否有这方面的现有标准,或事实标准的库,应该尽量遵照现有成文规范。
  • 平衡兼容性和正确性,Java的历史负担很重,希望不要break现有生态。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants