Paul,

I gave up making sense of the way Flex 2 handles dates from web services 
almost a year ago and stated passing them as strings.  I brought this up 
many times during the beta and since then and have never seen a good 
solution for getting Flex to stop mucking with the timezone. 

The other big problem with the Date class in AS3 is that it is a 
reference type and cannot be directly compared using ==.  You have to us 
an external date compare function or compare the individual components 
of both dates (after checking that neither one is null). 

I've been using strings for all date related processing in flex for 
about 9 months and it's been perfect.

- Kelly

paulwelling wrote:
> Hello,
>
> I have a WS that returns a date.  Our server is in EDT.
> Using Charles to sniff the date: 2007-05-15T00:00:00-04:00
>
> When debugging the resultset in Flex, it appears that Flex has ignored
> TZ info passed and has applied the client's TZ to the date..!  
>
> (I changed my PC's TZ to GMT and the TZ offset in the resultset gets
> changed accordingly, even though the server is still passing -04:00!!!)
>
> Has anyone come up with a good work-around / fix for this...  (I'm
> still in shock on this one...)
>
> Thanks for the help!
> Paul
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>
>
>
>
>
>   

Reply via email to