I've filed an internal enhancement request for more options to manipulate the timezone. Who knows what we'll get out of it but hopefully I can at least get a little discussion going internally. More info when we get back...
Matt -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Laing Sent: Thursday, December 22, 2005 10:20 PM To: [email protected] Subject: Re: [flexcoders] Re: How to handle manipulation of Date object and Timezones elegantly in Flex? On 12/22/05, Matt Chotin <[EMAIL PROTECTED]> wrote: > Are there other developers out here who've been building apps that need > to work in multiple timezones (or store their dates in GMT but work in > another)? I know I've answered some issues before in the past, if > anyone wants to speak up ;-) We have a similar but slightly different use-case (and unresolved problem, for that matter): Our clients will be all over the world and will be sending dates back to our database via RemoteObject calls. When the date object is serialized, Flex automatically takes care of updating the time zone information. However, this is actually *not* what we want to happen because we are sending back dates with 00:00:00 timestamps (i.e. no time information). However, when this information crosses timezones during serialization, 00:00:00 becomes a time (midnight), which is then offset according to the timezone difference, and the date possibly becomes a day off. E.g. a date of 25-Dec-2005 00:00:00 GMT on the client becomes 24-Dec-2005 17:00:00 EST in the database. And those of us who celebrate Christmas know that 24-Dec != 25-Dec If there was a way that we could configure our clients to work in the same timezone as our server, then we'd be all set. Alternatively, if we could configure serialization to ignore timezone information then our dates wouldn't be corrupted. Maybe there is already an easy solution. I haven't had a chance to dig into the problem too much. But any suggestions are appreciated. Jim -- 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 ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

