<CFWDDX action="" has a bug....there is no difference between AM and PM. It loses the 24 hour information, converting it to 12 hour. Run this code to see.

<cfscript>
timestruct = structnew();
timestruct["am"] = createdatetime(2004, 5, 24, 02, 10, 05);
timestruct["pm"] = createdatetime(2004, 5, 24, 14, 10, 05);
</cfscript>

<script>
<cfwddx action="" input="#timestruct#" toplevelvariable="jstimeobject">
document.write("The AM time is: " + jstimeobject.am);
document.write("<BR>");
document.write("The PM (incorrect) time is: " + jstimeobject.pm);
</script>

<BR><BR>
The cfmx wddx2js code is:<BR>
<cfwddx action="" input="#timestruct#" toplevelvariable="jstimeobject">
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to