tracker issue : CF-3041034

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

Bug 82249:(Watson Migration Closure)Datediff function does not calculate differences correctly

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Nathanael Waite / Nathanael Waite (Nathanael Waite)

Created: 02/25/2010

Components: Language, Functions

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / CF12

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 6

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on August 28, 2019 using build 2016.0.01.298513
Problem:

Datediff function does not calculate  differences correctly.  I think this might be a issue with the underlining java but still does not work correctly and therefore makes this function not reliable.
Method:

<cfset date = DateDiff('m','2/28/2010','8/28/2010')> <cfoutput>       <pre>               Difference: #date#       </pre> </cfoutput> Run that you would think you would get 6 But no you get 5.  Go figure.
Result:

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

Watson Bug ID:	3041034

External Customer Info:
External Company:  
External Customer Name: Nathanael Waite
External Customer Email: 6D22466341E288C0992016B7
External Test Config: 02/25/2010

Attachments:

Comments:

Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
31230 | August 28, 2019 09:45:28 AM GMT