Status/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron ()
Created: 05/12/2017
Components: Language, Member Functions
Versions: 2016,11.0,2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: ? /
Priority/Frequency: Normal / Some users will encounter
Locale/System: / Platforms All
Vote Count: 0
Repro:
https://trycf.com/gist/15aae49a3d46a75a716ca1b7ddeae69d/acf2016?theme=monokai
<cfscript>
d1 = now();
sleep(1000);
d2 = now();
writeOutput(dateDiff("s", d1, d2));
writeoutput("<br>");
writeOutput(d1.diff("s", d2));
</cfscript>
Result:
1
-1
Looks to me like diff() is using the dates around the wrong way.
Nort really sure how this could have got through testing, TBH?
Attachments:
Comments: