I've confirmed this to be a known bug that was not addressed in either Update 1 or 2.  
The bug occurs when comparing two dates where the time portion of date 2 is one or 
more hours greater than date 1.  I have no further information on the status of the 
bug other than to say it has been examined further in the last few weeks.

Example:

<cfscript>
   DateOne = CreateTime( 10, 0, 0 );
   DateTwo = CreateTime( 10, 59, 0 );
   DateThree = CreateTime( 11, 0, 0 );
</cfscript>

<p>
-1, if date1 is less than date2<br>
0, if date1 is equal to date2<br>
1, if date1 is greater than date2<br>
</p>

<cfoutput>
Compare (#DateOne#) with (#DateTwo#) = #DateCompare( DateOne, DateTwo, "n" )#<BR>
Compare (#DateOne#) with (#DateThree#) = #DateCompare( DateOne, DateThree, "n" )#
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to