Question
DateAdd DST bug in Cfquery?
Hello! We ran into an interesting apparent bug today in
cfquery regarding daylight savings. If you look below, this is the
content of the cfdump when we tried to do simply "select
dateAdd(hour,1,'3/11/2007 01:00:00');" from within a cfquery. It
adds properly to the hour before or the hour after, but at that
hour (which is the dst switch hour), it adds 2! Any ideas? Anyone
run into this before?
CODE:
<cfquery name="qry" datasource="test">
select dateAdd(hour,1,'3/11/2007 01:00:00');
</cfquery>
<cfdump var="#qry#">
RESULTS:
query
RESULTSET query
COMPUTED_COLUMN_1
1 2007-03-11 03:00:00.0
CACHED false
EXECUTIONTIME 1
SQL select dateAdd(hour,1,'3/11/2007 01:00:00');
CODE:
<cfquery name="qry" datasource="test">
select dateAdd(hour,1,'3/11/2007 01:00:00');
</cfquery>
<cfdump var="#qry#">
RESULTS:
query
RESULTSET query
COMPUTED_COLUMN_1
1 2007-03-11 03:00:00.0
CACHED false
EXECUTIONTIME 1
SQL select dateAdd(hour,1,'3/11/2007 01:00:00');
