tracker issue : CF-4206764

select a category, or use search below
(searches all categories and all time range)

isDate function assumes numeric list is a valid date

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Dimitris S. / ()

Created: 01/21/2020

Components: Language, DateTime Functions

Versions: 11.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: 11 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2000 Server

Vote Count: 0

Problem Description:
If you create a list variable with a comma separated numeric values, the isDate function assumes it is a valid date

Steps to Reproduce:
<cfset local.test = "1,6,7" />
<cfdump var="#isdate(local.test)#">

Actual Result:
Yes (true)
{ts '2007-01-06 00:00:00'}

Expected Result:
No (false)

Any Workarounds: