Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): / ()
Created: 02/13/2017
Components: Language, WDDX Serialization
Versions: 2016
Failure Type: Comestic Issue
Found In Build/Fixed In Build: 2016,0,03,300466 / 302325
Priority/Frequency: Normal / Very few users will encounter
Locale/System: /
Vote Count: 0
Problem: WDDX Date time Serialize truncates time with +1 in German time zone
Method: Run the below repro code:
<cfset SetLocale('de_DE') >
<cfset test.date = ParseDateTime("2017-05-13 11:00:00.0")>
<cfset serialized = SerializeJSON(test)>
<cfset deserialized = DeserializeJSON(serialized)>
<cfwddx action="cfml2wddx" input="#test#" output="wddx_serialized" />
<cfwddx action="wddx2cfml" input="#wddx_serialized#" output="wddx_deserialized" />
<cfdump var="#test#" label="original"><br/><br/>
<!--- JSON Serialize / Deserialize --->
<cfdump var="#serialized#" label="serialized">
<cfdump var="#deserialized#" label="deserialized">
<cfdump var="#LSDateTimeFormat(deserialized.date, "yyyy-mm-dd HH:nn:ss.l")#">
<br/><br/>
<!--- WDDX Serialize / Deserialize --->
<cfdump var="#wddx_serialized#" label="wddx_serialized">
<cfdump var="#wddx_deserialized#" label="wddx_deserialized">
<cfdump var="#LSDateTimeFormat(wddx_deserialized.date, "yyyy-mm-dd HH:nn:ss.l")#">
Result: Output is truncated:
2017-05-13 12:00:00.0
Expected: 2017-05-13 11:00:00.0
Workaround: NA
Note:
Attachments:
Comments: