Can anyone else confirm that the datediff() function is broken in MX 6.1
compared with 6.0?

Simple test (code below) - output will show two consecutive dates with a
difference of  157 days i.e:
...
156
157
157
158
...

where it should be
...
156
157
158
159
...

Problem not evident on 6.0 (Windows or Linux).


<!--- test code --->
<cfset year = 2003>

<cfset date1 = createdatetime(year,5,1,0,0,0)>

<cfloop index="i" from="1" to="31">
 <cfset date2 = createdatetime(year,10,i,0,0,0)>
 <cfoutput>#i#. #date1# - #date2# =
#datediff("d",date1,date2)#</cfoutput><br>
</cfloop>


--------------------------------------------
Johan Steenkamp
www.assetnow.com
--------------------------------------------


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to