Status/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): Michel Monette / Michel Monette (Michel Monette)
Created: 04/16/2015
Components: Language, Functions
Versions: 10.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: 3.0 Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Windows 7
Vote Count: 1
Problem Description:
I’m having a problem with the CreateDateTime function in CF10.
<cfset x = createdatetime(2015,3,8,2,0,0)>
Throws this error:
Date value passed to date function createDateTime is unspecified or invalid.
Of course 02:00 on March 8th 2015 doesn’t really exist because of the time change, but it probably shouldn’t throw an error.
Is there a patch or a work around for this? We upgraded from CF7 last spring ( after the time change ), it wasn’t an issue in CF7.
Steps to Reproduce:
<html>
<head><title>Hello World</title></head>
<body>
<cfoutput>#ucase("hello world")#</cfoutput>
<cfset x = createdatetime(2015,3,8,2,0,0)>
</body>
</html>
Actual Result:
Page errors with a: Date value passed to date function createDateTime is unspecified or invalid.
Expected Result:
Note to error out.
Any Workarounds:
None.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3971009
External Customer Info:
External Company:
External Customer Name: Michel
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 7 64bit
Builder 3 64bit
Attachments:
Comments: