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

校车时刻表无法加载 #360

Open
fsy2001 opened this issue Dec 10, 2024 · 1 comment
Open

校车时刻表无法加载 #360

fsy2001 opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@fsy2001
Copy link
Collaborator

fsy2001 commented Dec 10, 2024

在12小时制下,校车时刻表无法加载,具体问题为无法解析格式为HH:mm的时间。

目前我不能复现,但是在用户设备上能够稳定复现。

这是用户的地区/时间设置:

20c83416e3dc5d9c436bf015c3e0b6be

@fsy2001 fsy2001 added the bug Something isn't working label Dec 10, 2024
@singularity-s0
Copy link
Collaborator

singularity-s0 commented Dec 10, 2024

事实上,采用 HH:mm 解析时间确实存在很多地域相关问题,包括不是所有国家都采用 : 分隔分钟和秒钟。参见 https://forums.developer.apple.com/forums/thread/701972

这可能和以前开学日期解析错误的问题也有关。我们应该实现自己的抽象日期类,而不是采用系统提供的与用户地区强相关的 API。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants