Re: Daylight Savings Scheduled Tasks
I usually use the following JVM arg (I'm in the central time zone): -Duser.timezone=America/Chicago Hmm, thanks... but am still a little confused. What determines whether coldfusion/CFScheduler switches to daylight savings time? (A) the timezone settings in the OS or (B) settings in the JVM? I have told the OS to ignore daylight savings time (use GMT-6 all year, every year). Is the JVM going to override that based on its own internal timezone data and say hey, GMT-6 sounds like it's central time, so therefore it's time for daylight savings time, or will it respect the OS's timezone data and keep ColdFusion on GMT-6? Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331725 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Daylight Savings Scheduled Tasks
CF relies on the JVM for time zone settings. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331726 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Daylight Savings Scheduled Tasks
I have had the following problem the last couple of time changes, and would like to know if there is a simple solution to fix it: I have a number of tasks that I need to run just after midnight, local time (CT), whether it's standard CST or daylight CDT. 12:01 AM. I use CF scheduler with settings run daily at 12:01 AM. However, whenever we hit a daylight savings and switch between CST and CDT, ColdFusion tries to be smart and adjusts that starting time by 1 hour, which means that the tasks start running at 11:01 PM CT. What I'd like to say is run daily at 12:01 AM CT, so that it runs at 12:01 regardless of whether we're in daylight savings or not. Is there a way to do this in scheduler? The work around is to wait for daylight savings to occur and then go in and resubmit all of those tasks to again run at 12:01 AM. It then starts working correctly until the next time change. This, however, is a very annoying solution. Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331625 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Daylight Savings Scheduled Tasks
I personally would not have DST switched on for a server, and have it disabled. But I guess the only other solution would be to have the script run before the DTS changes, don't know how the computers do it but the DTS should change at a given time so you might want to make sure the task is run after that or before that time. -Original Message- From: Terry Ford [mailto:terryfor...@yahoo.com] Sent: Thursday, March 11, 2010 8:33 PM To: cf-talk Subject: Daylight Savings Scheduled Tasks I have had the following problem the last couple of time changes, and would like to know if there is a simple solution to fix it: I have a number of tasks that I need to run just after midnight, local time (CT), whether it's standard CST or daylight CDT. 12:01 AM. I use CF scheduler with settings run daily at 12:01 AM. However, whenever we hit a daylight savings and switch between CST and CDT, ColdFusion tries to be smart and adjusts that starting time by 1 hour, which means that the tasks start running at 11:01 PM CT. What I'd like to say is run daily at 12:01 AM CT, so that it runs at 12:01 regardless of whether we're in daylight savings or not. Is there a way to do this in scheduler? The work around is to wait for daylight savings to occur and then go in and resubmit all of those tasks to again run at 12:01 AM. It then starts working correctly until the next time change. This, however, is a very annoying solution. Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331627 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Daylight Savings Scheduled Tasks
On 12/03/2010 12:33, Terry Ford wrote: I have had the following problem the last couple of time changes, and would like to know if there is a simple solution to fix it: I have a number of tasks that I need to run just after midnight, local time (CT), whether it's standard CST or daylight CDT. 12:01 AM. I use CF scheduler with settings run daily at 12:01 AM. However, whenever we hit a daylight savings and switch between CST and CDT, ColdFusion tries to be smart and adjusts that starting time by 1 hour, which means that the tasks start running at 11:01 PM CT. To me that sounds more like the server is staying on Standard Time. That is a fairly common scenario in most hosting companies. How to handle the daylight savings changes goes in the same basket as how do you handle different time zones and the answer is dependent on what your site is doing. Our advice to clients for simple sites is to have a switch in some convenient spot, code (Application.cfc) or database, to flag daylight saving status and have a global variable with adjustedNow() in it. For more complex site where you might be working over many time zones or international users then you need to make it more complex. -- Yours, Kym Kovan mbcomms.net.au ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331629 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Daylight Savings Scheduled Tasks
I personally would not have DST switched on for a server, and have it disabled Thanks for the response. I just switched DST off on the server (RHEL linux: ln -s /usr/share/zoneinfo/Etc/GMT+6 localtime). However, the scheduler.log is still picking up CST somehow after a CF reboot: task -- Rescheduling for :Thu Mar 11 22:45:00 CST 2010 Do you have any idea how CF picks up server timezone? I would have thought that the JVM would have picked up that change. I'm not sure where CF is getting that CST from. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331630 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Daylight Savings Scheduled Tasks
I usually use the following JVM arg (I'm in the central time zone): -Duser.timezone=America/Chicago ~Brad - Original Message - From: Terry Ford terryfor...@yahoo.com To: cf-talk cf-talk@houseoffusion.com Sent: Thursday, March 11, 2010 9:48 PM Subject: Re: Daylight Savings Scheduled Tasks Do you have any idea how CF picks up server timezone? I would have thought that the JVM would have picked up that change. I'm not sure where CF is getting that CST from. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331631 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Daylight Savings Scheduled Tasks
When making changes to the local and region settings ColdFusion must be restarted, I am assuming you did that? -Original Message- From: Terry Ford [mailto:terryfor...@yahoo.com] Sent: Thursday, March 11, 2010 10:48 PM To: cf-talk Subject: Re: Daylight Savings Scheduled Tasks I personally would not have DST switched on for a server, and have it disabled Thanks for the response. I just switched DST off on the server (RHEL linux: ln -s /usr/share/zoneinfo/Etc/GMT+6 localtime). However, the scheduler.log is still picking up CST somehow after a CF reboot: task -- Rescheduling for :Thu Mar 11 22:45:00 CST 2010 Do you have any idea how CF picks up server timezone? I would have thought that the JVM would have picked up that change. I'm not sure where CF is getting that CST from. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331632 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm