Skip to main content
Participant
April 1, 2008
Answered

TimeFormat is off by one hour

  • April 1, 2008
  • 3 replies
  • 1098 views
Up until recently, TimeFormat was working fine. Today, I noticed that the TimeFormat function is returning a properly formatted time but it was 1 hour slower than the clock on the WIndows 2003 Server that ColdFsuion is running on.

Anyone have a clue?
    This topic has been closed for replies.
    Correct answer Kelley_Hollowell
    You are so kind to share with me. Your information was extremely informative and useful. I thank you for your time.
    I moved all of my sites to a new physical Server in January and used the original CF install disks, totally forgetting about updates to CF and such. I was able to get everything up to date and it was very simple thanks to you and Sun.
    blessings
    -k-

    3 replies

    April 2, 2008
    I think the government changed the date the country went to daylight savings time, from this coming Sunday to March 9th. The Java runtime needed to be updated to keep up with our fine government.
    Participating Frequently
    April 2, 2008
    quote:

    the machine is up to date.
    Are you sure of that? I would suspect your JVM, so you might want to double check that by reading the tech note below. What is the version of JVM running on your server?

    ColdFusion MX/JRun and Sun's JVM: U.S. Daylight Saving Time changes in 2007

    Sun's JVM version 1.4.2_11 and above incorporates the new Daylight Savings time calculations. ColdFusion MX 6.1 Updater 1, ColdFusion MX 7.0.2, JRun 4 Updater 6 have been certified for JVM 1.4.2_11.

    Note, if your problem "fixes" itself after this Sunday, then it probably is the time change issue, and will be back in October unless you upgrade.

    Phil
    Participant
    April 2, 2008
    This Sunday comin' up? We Just did a DST switch on March 9, 2008 here in South Carolina,..... I was late to church because of it :)

    I am interested to know what "This Coming Sunday" has to do with anything. Of course, I am pretty much out of the loop in regards to "latest news."

    I am looking into the java piece and am thankful for your input.

    quote:

    Originally posted by: paross1
    Note, if your problem "fixes" itself after this Sunday, then it probably is the time change issue, and will be back in October unless you upgrade.

    Phil


    Participating Frequently
    April 2, 2008
    This coming Sunday would have been the "old" DST day, and as such, the old JVM versions (and any other software that did not get upgraded to the new DSTdate) would make the spring ahead one hour jump. Therefore, if the problem is in your JVM, then the time problem will self correct, at least until the old "fall back" date is reached in October, where you will be off an hour again until November.

    Save this in a ColdFusion template and run it on your server.
    Inspiring
    April 2, 2008
    Kelley Hollowell wrote:
    > Up until recently, TimeFormat was working fine. Today, I noticed that the
    > TimeFormat function is returning a properly formatted time but it was 1 hour
    > slower than the clock on the WIndows 2003 Server that ColdFsuion is running on.
    >
    > Anyone have a clue?
    >


    Has your Java been upgraded to use the new day time saving dates that
    went into effect last year? If not, your server probably has not
    updated the time for daylight savings yet.
    Participant
    April 2, 2008
    Thanks for the response.
    Yes, the machine is up to date. The CF TimeFormat function actually shows a time that is 1 hour earlier than the time on the servers clock in the system tray. Also, if I change the clock on the server to be 1 hour ahead, the CF Time function then shows the accurate time. It seems really odd.
    Any other ideas?
    -k-