--- In [email protected], Greg Morphis <gmorp...@...> wrote:
>
> out of the pan and into the fire....
> 
> I have a datefield and I choose for example April 1, the date saves as 3/31.

Greg,

Flex / Flash actually remotes dates without consideration of their Timezone 
offsets (so 4/1/2009 00:00 sent from a SWF in GMT-0500 remotes as 3/31/2009 
22:00 when sent to a server in GMT-0700).  This Flex cookbook entry summarizes 
the problem and provides one possible solution: 
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=12168

Another solution would be to ditch the Date type altogether for mid-tier 
transmission and send dates as strings.  We implemented this approach on my 
team with minimal suffering :)  You'll obviously have to parse the string when 
sending or receiving, but if the date is in a perdictable string-format, it 
will work fine.  On the Flex side, use a DateFormatter for sending and 
transform the received date-strings into dates via new 
Date(Date.parse(someServerDateString)).

Reply via email to