The PopupDateFormat.LongDateLongTime date format is not honored in a pop-up when the Windows system’s culture is set to ‘Japanese’ in ArcGIS Maps SDK for .NET v200.5.
ArcGIS Maps SDK for .NET
漏洞 ID 编号
BUG-000170371
已提交
August 29, 2024
上次修改时间
June 19, 2025
适用范围
ArcGIS Maps SDK for .NET
找到的版本
200.5
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
附加信息
The LongDateLongTime pattern that Maps SDK for .NET uses matches .NET's DateTimeFormatInfo.FullDateTimePattern for Japanese. For WPF apps that still target the .NET Framework, this format comes from Windows' National Language Support (NLS) and looks like this:
yyyy'年'M'月'd'日' H:mm:ss
2024年4月30日 19:44:34
For WPF apps that target .NET 8, this format comes from International Components for Unicode (ICU) and looks a bit different — now including day-of-the-week:
yyyy年M月d日dddd H:mm:ss
2024年4月30日火曜日 19:44:34
As for the 12-vs-24-hour behavior, there is no general way to force PopupDateFormat to use the 12-hour format in Japanese locales. This is by design and described in our documentation:
https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Mapping.Popups.PopupDateFormat.html
Formats that end with -24 always use 24-hour time. The rest of the formats use either 12-hour or 24-hour time based on the current culture (e.g. 5:59 PM or 17:59 or 오후 5:59).