cancel
Showing results for 
Search instead for 
Did you mean: 

Cold Fusion Error 97

Really testing my patience with this one.

 

My server is in CMT.

 

has anyone who has worked wtih Cold Fusion gotten this to work?

 

I'm using their SIM Cold Fusion example and I've been all over looking at setting the time correction, but having no luck.

mhaines99
Member
1 REPLY 1

<!--- a timestamp is generated --->

<cfdump var="#GetTimeZoneInfo()#">

<!--- Get current time. --->
<cfset dtNow = Now() />

<!--- Convert to GMT using UTC Offset. --->
<cfset dtGMT = DateAdd(
"s",
GetTimeZoneInfo().UTCTotalOffset,
dtNow
) />

<!--- Output both dates. --->
<cfoutput>
Now: #dtNow#<br />
GMT: #dtGMT#<br />
</cfoutput>


<cfset timestamp=DateDiff("s", "January 1 1970 00:00", DateConvert('UTC2Local', dtGMT)) >

<!--- The following lines generate the SIM fingerprint --->

<cf_hmac data="#loginID#^#sequence#^#timestamp#^#amount#^" key="#transactionKey#">

mhaines99
Member