I looked all through the ColdFusion Admin but wasn't able to find anywhere to specify this. I then seem to remember that when I setup this server, and installed ColdFusion on it, that I had the wrong timezone set and somehow that must have been saved. Since ColdFusion relies on Java I needed to change the time zone with the Java Virtual Machine (JVM) that ColdFusion runs. Here is how I did it:
- First, find the correct timezone ID for your location. I found mine by going here.
- Login to the ColdFusion Admin
- Under Server Settings go to Java and JVM
- Locate the JVM Arguments textarea
- Add a space after the last character, then "-Duser.timezone=
" and then your timezone ID. - Click the "Submit Changes" button
- Restart the "ColdFusion 8 Application Server" service
- Verify your time shows correctly now.
2 comments:
UPDATE YOUR BLOG!!!! You are so lazy....
This guide is helpful, but should probably mention that changing the JVM timezone causes Coldfusion's DateFormat()/TimeFormat() methods to use GMT for the timezone. In order to display local timezones, you'll have to use LSTimeFormat() and LSDateFormat(), which have interesting implications for your running apps.
I'm researching quick fixes for this, but I might end up installing Java patches. Sadly, patches for ancient Java are hard to find.
Post a Comment