Skip to main content
Known Participant
March 28, 2010
Question

Time offset (DST?) in CF server now() values.

  • March 28, 2010
  • 3 replies
  • 5476 views

This is WEIRD.

We have two CF servers, ver 7.? and 8.? on different boxes.

7.0 is production, 8.0 developer.

In the 7.0 server we see the value of now() being 1 hour different from the value of now() in the 8.0 server.

Both servers within the Windows environment show the same time value in the system tray.

Nowhere do we see - never looked for it - a Daylight Savings time override in CF 8.0.  Is there one?

Why should it be different than Windows itself.

Both servers are running Windows 2000 Server.  Ok, they boxes aren't QUITE as old!

Our workaround is to save data to our DB server based on a getdate() value in the DB server rather than bogus data.

Are we overlooking something REALLY simple?

Robert

    This topic has been closed for replies.

    3 replies

    Inspiring
    March 29, 2010

    What JVM is your CF7 server running?

    I suspect that you will need to update the JVM on your CF7 server.  See reference from Adobe below.

    http://go.adobe.com/kb/ts_d2ab4470_en-us

    Known Participant
    March 29, 2010

    JVM version ... is that the same as below?

    Inspiring
    March 28, 2010

    You don't have an old unpatched JVM do you?

    http://www.theregister.co.uk/2007/03/09/java_time_bug/

    --

    Adam

    Known Participant
    March 28, 2010

    Read the article with thanks.

    Based on their description, it would not affect a simple now() as it seems to need to include time zone references.

    In addition, as of last night, the UK is on the same time zone we are on ... (client has a UK office) ... but this server was purchased in the USA in their US data centre.

    I am lost ... how does one update JAVA on a server?

    Speaking of OLD, their production server is older than the dev box by 2-3 years so I would suspect the other way 'round.

    I did just reboot the dev box on a prayer (should have tried that sooner) and no luck.

    Inspiring
    March 29, 2010

    what does this tell you? is it the same for both servers (the tzName should be,

    the JRE for cf7 & cf8 should be different)?

    ");

    </cfscript

    March 28, 2010

    Check the TZ SETTING.  I think it is in the JVM config.

    Known Participant
    March 28, 2010

    Thanks for the reply ...

    Unfortunately that does not seem to be the culprit ...

    The JVM Argument field looks like:

    -server -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.libPath={application.home}/../lib