Thursday 30 October 2014

If you're in the UK, can you please do me a quick favour?

G'day:
Hey, if you're in the UK, can you please run some code for me and let me know what you get?

Here's the code:

<!--- lsDateFormat.cfm --->
<cfoutput>
#server.coldfusion.productVersion#<br>
#GetLocale()#<br>
<cftry>
    #lsdateformat("29-October-2013")#<br>
    <cfcatch>#cfcatch.message#</cfcatch>
</cftry>
</cfoutput>

It'll output something like:

9,0,2,282541
English (UK)
29-Oct-2013


Could you also please let me know what your regional/locale settings are at OS level, and whether or not you have any locale settings in your jvm.config (or whatever it is if you're not on Windows), eg:

java.args=-server -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m -Duser.language=en -Duser.region=GB

The reason I ask is that we've recently seen some behavioural changes with locale, and trying to track down what caused it. I suspect it's that we've just upgraded from 9.0.1 to 9.0.2, but this doesn't seem to be entirely borne out by what we're seeing.

On our local dev machines despite the OS's locale/regional stuff being set to en_GB, CF is defaulting to en_US. Unless we force its hand by using those java.args settings, which we have not needed to do before.

I'd appreciate any feedback on this stuff you can give me! Cheers.

--
Adam