[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.2/kdelibs/kjs
From:       Harri Porten <porten () kde ! org>
Date:       2009-03-27 3:16:54
Message-ID: 1238123814.319427.24830.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 945181 by porten:

Make the date string 'Mon Nov 24 04:25:03 -0800 2008' from bug #176511 parsable. Ugly.


 M  +3 -0      date_object.cpp  


--- branches/KDE/4.2/kdelibs/kjs/date_object.cpp #945180:945181
@@ -972,6 +972,9 @@
     int nesting = 0;
     char ch;
     while ((ch = *s)) {
+        // interpret - before a number as a sign rather than a comment char
+        if (ch == '-' && isASCIIDigit(*(s+1)))
+            break;
         if (!isSpaceLike(ch)) {
             if (ch == '(')
                 nesting++;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic