[Webkit-unassigned] [Bug 13472] Misparsing date in javascript leads to year value of -1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 22 14:46:02 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=13472





------- Comment #8 from aroben at apple.com  2007-09-22 14:46 PDT -------
(From update of attachment 16321)
+            while (*dateString && (*dateString != '-' && *dateString != ',')
&& !isspace(*dateString))

The parentheses around (*dateString != '-' && *dateString != ',') should not be
necessary.

+            if (*dateString != '-' && *dateString != '/' &&
!isspace(*dateString) && *dateString != ',')

It would be a little nicer to put the comma check after the slash check, but
that's a real nitpick.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list