Updating ColdFusion MX 7 for 2007 DST Changes

The Energy Policy Act of 2005 officially changed the start and end dates for Daylight Savings Time (DST) in the US this year (2007). DST started at 2:00AM on the 2nd Sunday in March (03/11/2007) and ends the 1st Sunday in November (11/04/2007). These dates will affect all versions of ColdFusion (5.0-MX 7).

I admit I’m a little late applying this patch but oh well. Here are the steps I took to update CFMX7.

Download the Java 2 SDK 1.4.2_11. Run the install and place it (to simplify the path) in the root of your C: drive (c:\j2sdk1.4.2_11 for example)

Now you need to update the JVM that shipped with ColdFusion. To do this you need to edit one line in the jvm.config file. The jvm.config is where VM configuration settings are stored and is located in the cf_root\runtime\bin directory for the single server configuration and jrun_root\bin directory for the multiserver configuration of ColdFusion using JRun as the application server. The jvm.config recognizes an argument called “java.home”. The “java.home” argument accepts a value of the path to your JRE. For example:java.home=C:/CFusionMX7/runtime/jre. When you upgrade your JVM, this argument must reflect the path to your new JRE. For example: java.home=C:/j2sdk1.4.2_11/jre.

Restart all your Coldfusion services and download and run the dstDate.cfm script to test that everything works.

The following table displays the results of a properly patchedColdFusion MX configuration:

Today March 11

(New DST Start)

Apri1

(Old DST Start)

October 28

(Old DST End)

November 4

(New DST End)

Dates 03/29/2007

3:00:00 AM EST

03/11/2007

3:00:00 AM EDT

04/01/2007

3:00:00 AM EDT

10/28/2007

3:00:00 AM EDT

11/04/2007

3:00:00 AM EST

DST ON Yes Yes Yes Yes No

technorati tags: