Skip to main content
Inspiring
October 23, 2008
Question

CF8 can’t read the time coming from CF7 Web services?

  • October 23, 2008
  • 2 replies
  • 321 views
Hello,

I have follwing Code runing in CF7 box:

<cfcomponent>
<cffunction name="test" access="remote" returntype="any">
<cfargument name="in" type="string" required="true">
<cfset x = CreateDateTime(2008,10,30,14,00,00)>
<cfreturn x>
</cffunction>
</cfcomponent>
=============================================================

And i call that CFC form CF8 box with code bellow :

<cfinvoke
webservice =" http://#application.WebService#/MessageMakerData/test.cfc?wsdl"
method ="test"
returnvariable ="out">
<cfinvokeargument name="in" value=""/>
</cfinvoke>

<cfdump var="#out#">
--------------------------------------------------------------------------------
<cfset x = CreateDateTime(2008,10,30,14,00,00)>
<cfdump var="#x#">

============================================
That give me these results:

{ts '2008-10-30 15:00:00'}
--------------------------------------------------------------------------------
{ts '2008-10-30 14:00:00'}

============================================
As you can see CF8 have added extra one hour to the time comming from CF7 web service call.

Do you have any idea why?

Thanks
Sam
    This topic has been closed for replies.

    2 replies

    SamanAuthor
    Inspiring
    October 23, 2008
    Thanks Ian,

    I did further investigation on this. When I tried this between two CF8 Boxes, one come with +1 hour and other one come with -1 hours. And when I call within Same CF8 box, still it adds a hour.
    But in when with CF7 it always comes out the correct value.

    Thanks again
    Inspiring
    October 23, 2008
    Saman wrote:
    >
    > Do you have any idea why?
    >

    The first thing I would investigate is has the CF 7 server been updated
    to the correct JVM that understands the *new* daylight savings dates?

    When CF 7 first came out, daylight savings may have already changed.
    When the US changed the dates, the JVM needed to be upgraded to handle
    the new dates.

    I presume the JVM under CF8 understands all of this.