Thank you for your response.
I understand that using currentLocale or autoupdatingCurrentLocale will display according to the set locale. However, using currentLocale means the behavior depends on the user’s locale settings. I am setting systemLocale to use the 24-hour format for the UIDatePicker value without relying on the user’s locale settings.
Therefore, I would like to know how to solve this issue without changing the code. I believe this issue is due to differences in behavior between iPadOS 15 and iPadOS 16. Until iPadOS 15, it was in the 24-hour format, but from iPadOS 16, it has changed to the 12-hour format. I have not changed the code.
Is there a change in behavior when using systemLocale with UIDatePicker from iPadOS 16?
“systemLocale would default to 24-hour clock or 12-hour format depending on the user’s region setting.”
Is it possible to change the region setting to use the 24-hour format?
Thank you in advance for your help.