Skip to main content
Legend
Sep 25, 2013 7:14 PM UTC
Question

ColdFusion scheduler executes alltasks 1 hour early

Hi,

Our CF10 (Windows 2012, IIS8) has a number of scheduled tasks, but all are running 1 hour early. Our clock is set to GMT, and the tasks run GMT-1. The time settings in Windows are set correctly for our location - UTC London with daylight saving time.

Why is CF10 getting the time wrong? Does it take into account daylight saving?

Thanks,

Mark

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    p_sim
    Participating Frequently
    Sep 26, 2013 4:45 PM UTC

    Yes, it takes daylight saving into account.

    #getTimeZoneInfo().utcHourOffset#

    For example, Where I am now is PDT, which -8. In November, when the time back to PST, it will be -7.

    Translate
    tribuleAuthor
    Legend
    Sep 27, 2013 7:02 AM UTC

    The issue here is that the IIS logs are out by an hour. I watched the server more closely and it did call a scheduled task at the correct (local) time. IIS logs in IIS format are correct. IIS in W3C format do not respect local time by default. One to be aware of!

    Translate