tracker issue : CF-3041770

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

Bug 83591:(Watson Migration Closure)isDate function gives incorrect results

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Tom McNeer / Tom McNeer (Tom McNeer)

Created: 07/14/2010

Components: Language, Functions

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 2

Problem:

isDate function gives incorrect results. dateFormat and LSDateFormat give inconsistent results
Method:

Certain incorrect date strings can be identifed as valid by isDate, even though they are missing certain elements. Such a string may also be output by dateFormat (with an assumption inserted for the missing element), but will throw an error in LSDateFormat.For example, the date string 'Fri May 28 13:04:32'. (Note the missing year). isDate identifies it as a valid date. DateFormat outputs it with an assume year (01). LSDateFormat errors out. The following sample page code illustrates the problem:<cfset dateString = 'Fri May 28 13:04:32' /><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title></head><body><cfoutput><p>Testing the value of the date string: The string is 'Fri May 28 13:04:32'.</p><p>The result of an isDate test on the string is: #isDate(dateString)#.</p><p>Now let's format the string: #LSdateFormat(dateString,'short')#</p></cfoutput></body></html>
Result:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041770

External Customer Info:
External Company:  
External Customer Name: Tom McNeer
External Customer Email: 6BD004EF442B07AC99201549
External Test Config: 07/14/2010

Attachments:

Comments:

This bug has been voted..
Vote by External U.
21759 | November 11, 2011 12:47:38 AM GMT
+1 ......................
Vote by External U.
21760 | October 09, 2015 06:15:08 PM GMT
You didn't find enough time in the intervening five years, Adobe? Wow: you're *really* busy, eh?
Comment by External U.
21758 | October 10, 2015 02:09:15 AM GMT