Date.diff method doesn't work correctly| View in Tracker
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?