tracker issue : CF-3731533

select a category, or use search below
(searches all categories and all time range)
Title:

[Regression] : CFCLIENT: Date : diff: returns month difference as 1 when difference is less than a month

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)

Created: 03/27/2014

Components: Mobile Support, Data Structure

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: 289255 / CF11 Update5

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Code snippet:

<div id="actual_1" class="actual">
<cfclient>
<cfset thisDatePart = "m">
<cfset date1 = createDateTime("1944","04","21","08","22","00")>
<cfset date2 = createDateTime("1944","05","1","08","22","00")>
<cfset posdiff = date2.diff(thisDatePart,date1)>
<cfoutput>#posdiff#</cfoutput>
</cfclient>
</div>

Expected: 0
Actual: 1

Note: This works as expected in public beta build

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3731533

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Issue is fixed. Hence, closing this bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
13006 | January 19, 2015 12:54:31 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
13007 | February 20, 2015 09:27:30 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
13008 | November 23, 2015 03:38:58 PM GMT