Open yma44 opened 4 days ago
@grendello is this us or the runtime team?
@dellis1972 it's the runtime team, we no longer have any TZ-specific code in our repo
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.
Tagging subscribers to this area: @dotnet/area-system-datetime See info in area-owners.md if you want to be subscribed.
@matouskozak
Description
We have issue which string with "PM" does not parsed correctly when a device locale is set to Taiwanese (zh-Hant-TW) on Android 13+.
DateTime.TryPase returns true, but output value is not correct. Even though 1PM is passed to the TryParse method, the output is 1am.
This is the code:
dateTime variable before calling this method : 0001/1/1 12:00:00 dateTime variable after calling this method : 2024/11/18 1:00:00
If we use Android 12, the output is correct. dateTime variable before calling this method : 0001/1/1 上午12:00:00 dateTime variable after calling this method : 2024/11/18 下午1:00:00
If we use other Chinese locales (e.g. Hong Kong Chinese) there is no issues.
I am using Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.8.1, but also tried Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.11.0 Preview 2.1, still got the same issue.
These are the full details of VS.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14 and above.
Did you find any workaround?
No response
Relevant log output