We noticed our date format output changed to US format (MMM dd yyyy). Although Windows regional setting is set to New Zealand. How this can be changed to en_NZ?
Below is from log output
Connect Product version: 2022.1.4.10850
OSGi NLS: {System: en_US}
Region: {Country: US, Language: en}
Time Zone: Pacific/Auckland
The Connect installer configures the system locale for each product based on the Windows regional settings at the time of installation. AFAIK changing the Windows regional settings afterwards has no effect on Connect. Reinstalling Connect should work although that would be a bit draconic. You could also manually change the .ini files of the various products in subfolders of the Connect installation directory. The relevant entries are -Duser.language and -Duser.country.
However, relying on the system locale is not ideal since the output can potentially change after you move your template to a different machine. If a template is locale-sensitive I would recommend changing the locale setting (Edit > Locale) from “system locale” (the default setting) to a specific locale. This makes the template portable - with consistent output. You can also change the initial locale for new templates via Preferences > Language > Default Locale.