ColdFusion 8: Timezones Bug

I was working on a CF8 project (using the Linux version) recently and noticed that now() was returning the wrong time. It was off by an hour. While I appreciated the extra hour's sleep, I decided to hunt for the solution. I finally found the workaround for this continuing bug at phusor.com.

1. Open {coldfusion8}/runtime/bin/jvm.config with a text editor.

2. Find the entry around line 18 that has a comment: "# Arguments to VM".

3. Add a new agrument to the beginning of the java.args parameter which defines the timezone. For example:

java.args=-Duser.timezone=America/New_York ( other parameters...)

4. Re-start CF and the problem should be resolved.

Thanks, TJ!

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
maclive's Gravatar Saw this issue pop up on 2 of my CF8 servers today. I don't get it. CF8 is supposed to have all of this time zone stuff corrected.

Thanks for the help! It did the trick!
# Posted By maclive | 11/7/07 12:07 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.