Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time changed

Status
Not open for further replies.

MsChelle

Programmer
Jul 11, 2002
54
US
During a service call to fix a bad processor on the server, the tech for some reason changed the time on the server (probably because the server is [intentionally] running as a different time zone).

Since then, my CF scheduled tasks have been running an hour early. I have changed the time on the server back, and even restarted the CF service, but it's still doing it. The scheduled tasks in the admin still show the correct times to run.

Any ideas? What does CF use to determine current time?
 
Hi,

ColdFusion MX 6.1 (and later I'm assuming) use the Java Runtime Engine specified in the CF Administration Page. (I believe it's under the System link on the upper right.)

The version of Java shipped with CFMX6.1 does not conform to the new DST rules in effect in 2007.

Also, the version of Java used by CF is not necessarily the same version used by the rest of the machine (browser, etc).

The best info I've seen on this is [link
]__here__[/url].

Possible Solutions (YMMV)

So, if your server is still set to a different zone and after verifying your version of JRE you still have this issue, you may have to find a way to set or program an offset for your CF application.

1. IF you rely on the CF function [tt]now()[/tt], try substituting the db backend's date funtion. (Example, for T-SQL use [tt]getDate()[/tt]).

2. Or try arranging an offset var in the application.cfm page(s).

3. Or try passing some offset (do not know if possible) to the JVM via the CF Admin > Java and JVM > JVM Arguments.



[rockband]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top