Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 12/15/2015
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: English / Platforms All
Vote Count: 1
dateAdd() milliseconds does not work
Repro:
<cfscript>
dateTime = createDateTime(2016,1,3,1,2,3);
dateAdd("l", 456, dateTime);
writeOutput(dateTimeFormat(dateTime, "yyyy-mm-dd HH:nn:ss.lll"));
sdf = createObject("java", "java.text.SimpleDateFormat").init("yyyy-MM-dd HH:mm:ss.SSS");
writeOutput('<br>' & sdf.format(dateTime));
</cfscript>
Actual result:
2016-01-03 01:02:03.000
2016-01-03 01:02:03.000
Expected result:
2016-01-03 01:02:03.456
2016-01-03 01:02:03.456
Verified in CF11 Update 7 (build 11,0,07,296330).
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4100088
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: