We have a Windows project for UK use, but date/times on trend scales are displayed in US format with month first, eg 12/31/2021 not 31/12/2021.Use the function formatTime (e.g. formatTime("%c")) to display date and time. This function automatically generates date and time in the local format. Please also use this format for trend displays (time axis) and clock widget .
The hostWindows machine is properly configured for the UK. We have
Code: Select all
langs = "en_GB.utf8"
I made a script with the lines
Code: Select all
DebugTN("Locale", getLocale(0, LOCALE_FORMAT_ISO_WITH_ENCODING));
DebugTN("Now", formatTime("%c", getCurrentTime()));
Code: Select all
WCCOActrl3:2021.06.14 12:17:38.276["Locale"]["en_GB.utf8"]
WCCOActrl3:2021.06.14 12:17:38.276["Now"]["6/14/2021 12:17:38 PM"]
My question is: is there any way we can override the format adopted by formatTime("%c") to fix this? Or do we have to hunt down and eliminate all uses of formatTime("%c")?