Title:
[Regression] : CFCLIENT: Date : diff: returns month difference as 1 when difference is less than a month
| View in TrackerStatus/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
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: