Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!