I'm working on an intranet app used in several countries (and therefore several timezones).  I have one part of the application where a user is entering date in a form.  It's a bit more complex and a bit hard to explain, but at one point we're using <cfwddx> to go from cfml to js.  Some of the cfml items being passed into the wddx tag are date strings (say "22/1/2004" for today).  It looks like cfwddx is converting those strings into _javascript_ date/time objects with the local machine's timezone (say, Midnight on January 22, 2004 CST).

However, when displaying that data (where we just want to display the date as entered, without any time), ColdFusion appears to be converting that date time to the local server time. Since the server is in Denver, CO, it gets converted to 11 p.m. on January 21, 2004 (MST).

I've verified that the data being passed into the <cfwddx> tag is just "22/01/2004" for that field.

To make a long story short (too late), is there any way to prevent cfwddx from treating "22/01/2004" as a date and then converting it into a JS date object?

I thought I hit the jackpot when I saw the "UseTimeZone" attribute, but that's not a valid attribute when doing conversions to JS.

This is on CF5 on Windows 2000.

Thanks!

Scott

---------------------------
Scott Brady
http://www.scottbrady.net/
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to