Steve
_____
From: Mark Murphy [mailto:[EMAIL PROTECTED]
Sent: Monday, May 24, 2004 6:07 PM
To: CF-Talk
Subject: Date Bug in CFWDDX
<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]

