Ignore that. DateTime.Now includes timezone info. I changed this to use
"new Date(2006,01,01)" and I now have an issue when the client time is
behind GMT.

:-( 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Tuppeny
Sent: 26 June 2006 04:41
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: About dates sent to a webservice. Is this
correct?


I just tested this out (to see how bad it was!), and my web service
returned:

<dateTime
xmlns="http://tempuri.org/";>2006-06-26T10:38:54.6541786+01:00</dateTime>

Which includes timezone info. When I call ToString() on the flash date,
it returns exactly the same (10:38+1:00). Is this just an issue with
.NET 1.1? We're using 2.0.
 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Tuppeny
Sent: 26 June 2006 10:26
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: About dates sent to a webservice. Is this
correct?


I've read through that thread, and this hardly seems like acceptable
behaviour to me.

We're sending dates from a .NET web service too, and we don't care about
the time. We're plotting them on a calendar. We can't afford to have
dates sent as one thing, and then rolled back to the previous day
because the client machine is in a different timezone. There *needs* to
be a way to turn this off. If my web service says an event occurs on the
1st June, I want Flex to give me the 1st June.

What's the point in Flex translating it, and then me having to translate
it back (and remember to do this *everywhere*)?


 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kellyb723
Sent: 23 June 2006 17:24
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: About dates sent to a webservice. Is this
correct?

Yes this is correct.  I recently had a long thread about this.  What I
was told by Adobe is that If a web service defined the element-type in
WSDL as `dateTime' and sends a value that does not include a time zone
component Flex "has to" assume that this is UTC time and will
automatically adjust the Date value to your local time zone.

You can read my previous thread, including a post by Peter Farland
(Adobe) that this behavior is by design, and my workaround at:

http://groups.yahoo.com/group/flexcoders/message/39832

- Kelly

--- In flexcoders@yahoogroups.com, "Bas J. Brey" <[EMAIL PROTECTED]> wrote:
>
> You set a date e.g. 25th of January 2005 00:00 GMT +2
> 
> Flex sends it to the service as 24th of January 2005 22:00 ?
> 
>  
> 
> If so than you can never use a "date" type in your webservice cause
then you
> miss timezone information.
>







------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/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



 




[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



--
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



 




[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



--
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



 




[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/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/
 


Reply via email to