RE: [flexcoders] Re: About dates sent to a webservice. Is this correct?
Yep, it seems if you do DateTime.Now, it includes timezone info. If you do new Date(x, y, z), it doesn't (but you can probably add it). This is how Flex should work - if no timezone is specified, it should ignore timezones!! :-( -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Birr Sent: 26 June 2006 18:18 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: About dates sent to a webservice. Is this correct? We're also using .NET 2.0 but our web services do not return time zone information. They just send 2006-06-26T10:38:54. - Kelly -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny Sent: Monday, June 26, 2006 2:41 AM 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 -- 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
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 __ 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 * 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/
RE: [flexcoders] Re: About dates sent to a webservice. Is this correct?
Yes - I think it's an issue with 1.1 In our last Flex 2/.NET 2 application we were able to correctly pass date objects between Flex and .NET The only thing you have to watchout for is to make sure that the DateTime object your return from .NET has its Kind set to UTC - if so, it should work fine. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Daniel Tuppeny Gesendet: Mo 26.06.2006 11:41 An: flexcoders@yahoogroups.com Betreff: 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. -- 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 Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/ winmail.dat
RE: [flexcoders] Re: About dates sent to a webservice. Is this correct?
Title: RE: [flexcoders] Re: About dates sent to a webservice. Is this correct? This doesn't seem to work in .Net 2.0 either. I can send a date as UTC, but Flex still deals with it in the local timezone, so if we do: Alert.show(myService.myMethod.lastResult.startDate.month) We get the wrong month when the date is 1st, and our timezone is behind GMT. We have to remember to use the .UtcMonth etc. properties (which is likely to be the cause of many hard-to-find bugs in the future!). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk EismannSent: 26 June 2006 10:48To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: About dates sent to a webservice. Is this correct? Yes - I think it's an issue with 1.1 In our last Flex 2/.NET 2 application we were able to correctly pass date objects between Flex and .NET The only thing you have to watchout for is to make sure that the DateTime object your return from .NET has its Kind set to UTC - if so,it should work fine. Dirk. Von: flexcoders@yahoogroups.com im Auftrag von Daniel TuppenyGesendet: Mo 26.06.2006 11:41An: flexcoders@yahoogroups.comBetreff: 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 servicereturned:dateTimexmlns="http://tempuri.org/"2006-06-26T10:38:54.6541786+01:00/dateTimeWhich 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:flexcoders@yahoogroups.com] OnBehalf Of Daniel TuppenySent: 26 June 2006 10:26To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: About dates sent to a webservice. Is thiscorrect?I've read through that thread, and this hardly seems like acceptablebehaviour to me.We're sending dates from a .NET web service too, and we don't care aboutthe time. We're plotting them on a calendar. We can't afford to havedates sent as one thing, and then rolled back to the previous daybecause the client machine is in a different timezone. There *needs* tobe a way to turn this off. If my web service says an event occurs on the1st June, I want Flex to give me the 1st June.What's the point in Flex translating it, and then me having to translateit back (and remember to do this *everywhere*)?-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of kellyb723Sent: 23 June 2006 17:24To: flexcoders@yahoogroups.comSubject: [flexcoders] Re: About dates sent to a webservice. Is thiscorrect?Yes this is correct. I recently had a long thread about this. What Iwas told by Adobe is that If a web service defined the element-type inWSDL as `dateTime' and sends a value that does not include a time zonecomponent Flex "has to" assume that this is UTC time and willautomatically 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 causethen 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 ~--Something is new at Yahoo! Groups. Check out the enhanced email design.http://us.click.
RE: [flexcoders] Re: About dates sent to a webservice. Is this correct?
We're also using .NET 2.0 but our web services do not return time zone information. They just send 2006-06-26T10:38:54. - Kelly -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Tuppeny Sent: Monday, June 26, 2006 2:41 AM 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 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/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/