Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Gary Gilbert / Gary Gilbert (garyrgi)
Created: 11/14/2014
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / CF11 Update5,CF10 Update16
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 1
Problem Description:
ColdFusion incorrectly serializes dates using serializeJson in different system Locales. SerializeJson should convert a date to a date that javascript can parse. According to the online documentation “The SerializeJSON function converts the ColdFusion date time object for October 3, 2007 at 3:01 PM, for example, into the JSON string "October, 03 2007 15:01:00"
Example Date = {ts '2014-10-03 15:01:00'}
A Default Java Locale of any non-English locale produces incorrect MONTH names.
e.g. with default locale of de_DE
"Oktober, 03 2014 15:01:00"
e.g. with default locale of es_ES
"octubre, 03 2014 15:01:00"
The produced date CANNOT be parsed by javascript!
Steps to Reproduce:
Add -Duser.language=es -Duser.country=ES to jvm.config and restart the coldfusion service
<cfoutput>
#GetLocale()#<br>
#parsedatetime(datetime)#<br>
#serializejson(parsedatetime(datetime))#
</cfoutput>
Actual Result:
"octubre, 03 2014 15:01:00"
Expected Result:
"October, 03 2014 15:01:00"
Any Workarounds:
Force Java default local to en_EN via jvm arguments
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3852070
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: garyrgi
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: