Specifications
26 Migrating ColdFusion 5 Applications
Objects for date/time
ColdFusion MX no longer strips milliseconds off of date/time objects; to do this, use the
date formatting functions.
Date pivot point for two-digit years
When ColdFusion processes a date that has does not include the century, ColdFusion
determines the century. To do this, ColdFusion compares the date to when it processes
the date. With a few exceptions, ColdFusion MX uses 20 as the date pivot point for
calculating the century in a two-digit year. ColdFusion 5 uses 29.
Note: The following locales use 28 as the date pivot point instead of 20:
English(Australian), English(New Zealand), German(Austrian), German(Standard), German
(Swiss), Portuguese(Brazilian), Portuguese(Standard), and Swedish. Macromedia has
confirmed this inconsistency using the SUN JRE version 1.4 and the IBM JRE version 1.3.0.
So in ColdFusion MX, if the date is within 80 years before and 20 years after the date
when it processes the date, then ColdFusion MX returns the date with the current
century. Otherwise, it returns the previous century. In ColdFusion 5, if the date is within
71 years before and 29 years after the date when it processes the date, then ColdFusion 5
returns the current century. Otherwise, it returns the previous century. This can cause
incompatible results. For example,
LSParseDateTime("25-12-13 22:10:15") returns a
year of 1925 in ColdFusion MX, and 2025 in ColdFusion 5.
Note: Results might differ, depending on your Java Runtime Environment (JRE). This
information reflects tests on the SUN JRE version 1.4 and the IBM JRE version 1.3.0.
Macromedia has also tested using the SUN JRE version 1.3.1_01; however, many of these
tests have failed on locales other than English(US).
For more information, see the Java documentation for the java.text.SimpleDateFormat
class, at http://java.sun.com/j2se/1.3/docs/api/index.html.
Request variable
ColdFusion MX no longer supports the RequestTimeout attribute in the URL. For
pages expecting the
RequestTimeout attribute in the URL, add the following tag:
<cfsetting RequestTimeout = "#URL.RequestTimeout#">
For more information, see the “Variables and Reserved Words” chapter of CFML
Reference.
Definition of pi
ColdFusion MX and ColdFusion 5 define pi with slightly different precision. Therefore,
you might obtain slightly different results between the two for trigonometric functions
such as sin, cos, and tan at the boundaries (0, 90, 180, 270, ... degrees).
Null values
ColdFusion 5 converted all null values to an empty string (“ ”). ColdFusion MX
preserves null values, but converts them to an empty string when you use them as simple
values.