Status/Resolution/Reason: To Track//PRNeedInfo
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()
Created: 10/03/2017
Components: Language, DateTime Functions
Versions: 2016,2018
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 2016.0.01.298513 /
Priority/Frequency: Normal / Some users will encounter
Locale/System: / Win All
Vote Count: 1
Issue: CF passes date by reference
Repro:
<cfscript>
function myFunction(required date myDateTime) {
ARGUMENTS.myDateTime.setYear(2018);
}
myDateTime = createDate(2017,1,1);
myFunction(myDateTime);
writeOutput(myDateTime);//returns {ts '2018-01-01 00:00:00'} (bug - year should remain 2017)
</cfscript>
Actual Result: {ts '2018-01-01 00:00:00'}
Expected Result: {ts '2017-01-01 00:00:00'}
Attachments:
Comments: