>- see footer for list info -< Thanks, Christian. We can reproduce the error on both windows and Linux (both using Apache). And yes, I realise that I should have put the date in a bette format, I was just trying to illustrate the predominance of the 'T' ! We decided to use straight date and accept as a string, followed by an IsDate() check - it was less of a problem that way.
Good weekend to all. Terry (free event listings at http://www.confexdb.co.uk) ----- Original Message ----- > *From:* "Christian Bouet" <[EMAIL PROTECTED]> > *To:* <[EMAIL PROTECTED]>, "Coldfusion Development" > <[email protected]> > *Date:* Fri, 14 Nov 2008 09:13:20 -0000 > > Makes sense Terry, I was a bit slow there (nothing unusual). Java > originating from Sun it makes sense they use a UTC date format, didn't > think of that. Is the PHP on an Apache/*nix server as well mayhaps? > > Just so you don't get in trouble, the correct format will be > yyyy-MM-ddTHH:mm:ss if you need to create one. Make sure you use HH > and > not hh since a lot of parsers would consider hh a 12-hour clock and > change the T to either "A" or "P" (AM/PM). > > Christian > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Terry Riley > Sent: 14 November 2008 08:13 > To: [email protected] > Subject: Re: [CF-Dev] CFC function arguments > > >- see footer for list info -< > For anyone interested, this problem is solved. The stated "date" type > for a cfc method argument is, in fact, "dateTime" in the format > 'yyyy-mm-ddThh:mm:ss'. I tried several versions of date/time yesterday > but not with the 'T'! If you send that date format from php, it works > as > expected. If you are communicating with the webservice from another CF > application, then it would seem that 'yyyy-mm-dd' is acceptable. As I > was doing date calculations based on the yyyy-mm-dd format, I decided > to > change to "string" data type and run an IsDate() before proceeding. > > Hope that helps someone - I wouldn't perhaps have found it until I > looked at the XML produced by the method using soapUI (mentioned later > by Russ). > > Cheers > Terry > > ----- Original Message ----- > > > *From:* "Terry Riley" <[EMAIL PROTECTED]> > > *To:* [email protected] > > *Date:* Thu, 13 Nov 2008 15:08 +0000 (GMT Standard Time) > > > > >- see footer for list info -< > > Have been having a few problems with a web service being used by a > > php > > > app, which doesn't occur when I access the same service from CF(8). > > > > The function argument is type="date", and if I pass it '2008-10-20' > > from a CF template, it works and I get the right answers. > > > > If I access the same function, with the (AFAICT) exact same > > arguments, > > > from a php template (locally, as with the CF above), I get a > > failure from Invalid date/time format. > > > > When I change the php template date input to '10/20/2008' (ie > > mm/dd/yyyy) the bloody thing works without a failure message. > > > > I'm not going to ask the people writing the main php app to put all > > their dates into American, so am stuck with changing the argument > > type > > > from "date" to "string", and it all works. However, that doesn't > > feel right, somehow. > > > > Have I missed a trick (or two) in configuration that has caused me > > to make such a change. I cannae see where I missed out, captain. > > Any hints available? > > > > Cheers > > Terry > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG. > > Version: 7.5.549 / Virus Database: 270.9.2/1784 - Release Date: > > 12/11/2008 19:01 > > > > > > _______________________________________________ > > > > For details on ALL mailing lists and for joining or leaving lists, > > go to http://list.cfdeveloper.co.uk/mailman/listinfo > > > > -- > > CFDeveloper Sponsors:- > > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > > >- Lists hosted by www.Gradwell.com -< > > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your > > help -< > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG. > > Version: 7.5.549 / Virus Database: 270.9.2/1784 - Release Date: > > 12/11/2008 19:01 > > > > > > > Terry > (free event listings at http://www.confexdb.co.uk) > > > -- > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.549 / Virus Database: 270.9.3/1786 - Release Date: > 13/11/2008 18:01 > > > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go > to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your > help > -< > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.549 / Virus Database: 270.9.3/1786 - Release Date: > 13/11/2008 18:01 > > -- No virus found in this outgoing message. Checked by AVG. Version: 7.5.549 / Virus Database: 270.9.3/1786 - Release Date: 13/11/2008 18:01 _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
