Title:
Bug 82249:(Watson Migration Closure)Datediff function does not calculate differences correctly
| View in TrackerStatus/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
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: