troubleshooting Question

coldfusion server time / date reporting

Avatar of Eric Bourland
Eric BourlandFlag for United States of America asked on
ColdFusion Language
47 Comments1 Solution2043 ViewsLast Modified:
Windows 2008 Server R2
ColdFusion 9

I need to know what time ColdFusion thinks it is. I use this:

 <cfoutput>#DateFormat(Now())#,
    #TimeFormat(Now())#</cfoutput>

And you can see the output here: http://nnvawi.org/datetime.cfm

That is strange, though. I have set my Windows 2008 Server R2 to UTC time -- or, GMT. According to Windows, the current time is 7:51 p.m.

However, ColdFusion thinks the time is 12:51 p.m.

I think I need ColdFusion to report a time of 7:51p.m., just as Windows Server does.

(I need to do this because my authorize.net application throws an error:

(97) This transaction cannot be accepted.

Which seems to indicate that authorize.net does not accept the timestamp provided by ColdFusion.)

Why do you think Coldfusion says the time is 12:51p.m.? Does ColdFusion derive its timestamp for function TimeFormat(Now()) from the server?

Thanks as always for your help.

Eric
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 47 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 47 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros