# ColdFusion locale problem with SerializeJSON and date fields

While playing around with CouchDB, ColdFusion and SerializeJSON i found that the SerializeJSON does not honor the SetLocale setting. It will use the “Java Default Locale” which is set for the JRE.

So if your Windows installation is German, you will have a DE_de locale.

Now if you us SerializeJSON for a date you will get a date like “März, 21. 2009”. Not really good to use this in another DB.

To set the ColdFusion Java Default Locale to en_US you can supply a command line switch

-Duser.language=en -Duser.region=US

share