Skip to main content
Known Participant
March 11, 2008
Question

Time not updating in CF

  • March 11, 2008
  • 1 reply
  • 359 views
I was under the impression that the Now() function retrieved the date/time from the server running coldfusion, but that doesn't seem to be the case. Ever since the time change my server shows for example: 1:40pm but when I look at the output of the Now() function I'm getting 12:40pm. The server has the correct time.

Any ideas on how to fix this? I've tried recycling CF and IIS, but nothing.

Here's my code I'm using to validate.
<cfoutput>Date/Time Loaded:  #DateFormat(Now(),"mmm dd yy")# #TimeFormat(Now(),"HH:mm")#</cfoutput>
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 11, 2008
    Are you on CF 6 or 7 and using a JVM prior to 1.4.2_11?
    http://www.adobe.com/go/d2ab4470
    dmorand17Author
    Known Participant
    March 12, 2008
    Thanks that worked like a charm. I was using 1.4.2_11 when I was using CF 6, but when I upgraded to CF 7 it must have changed the path to my JRE. Thanks for the help!