Changeset 14206 in webkit for trunk/JavaScriptCore
- Timestamp:
- May 5, 2006, 8:09:59 AM (19 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r14184 r14206 1 2006-05-05 Darin Adler <[email protected]> 2 3 - http://bugzilla.opendarwin.org/show_bug.cgi?id=8722 4 IE compatibility fix in date parsing 5 6 * kjs/date_object.cpp: (KJS::parseDate): Merged change that George Staikos provided 7 from KDE 3.4.3 branch that allows day values of 0 and values that are > 1000. 8 1 9 2006-05-04 Anders Carlsson <[email protected]> 2 10 -
trunk/JavaScriptCore/kjs/date_object.cpp
r13824 r14206 1020 1020 return NaN; 1021 1021 1022 if (day < 1)1022 if (day < 0) 1023 1023 return NaN; 1024 1024 … … 1026 1026 if (day > 31) { 1027 1027 // ### where is the boundary and what happens below? 1028 if ( !(*dateString == '/' && day >= 1000))1028 if (*dateString != '/') 1029 1029 return NaN; 1030 1030 // looks like a YYYY/MM/DD date … … 1042 1042 return NaN; 1043 1043 dateString = newPosStr; 1044 } else if (*dateString == '/' && day <= 12 &&month == -1) {1044 } else if (*dateString == '/' && month == -1) { 1045 1045 dateString++; 1046 1046 // This looks like a MM/DD/YYYY date, not an RFC date.
Note:
See TracChangeset
for help on using the changeset viewer.