[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kjs
From: Harri Porten <porten () kde ! org>
Date: 2005-04-17 17:08:23
Message-ID: 20050417170823.5E8A8489 () office ! kde ! org
[Download RAW message or body]
CVS commit by porten:
parse date strings like "Apr17,2005"
BUGS:98027
M +2 -0 ChangeLog 1.62
M +5 -0 date_object.cpp 1.97
--- kdelibs/kjs/ChangeLog #1.61:1.62
@@ -1,4 +1,6 @@
2005-04-17 Harri Porten <porten@kde.org>
+ * date_object.cpp: parse date strings like "Apr17,2005"
+
* function.cpp: don't produce a null string result on unescape("")
(spotted in the JSC ChangeLog)
--- kdelibs/kjs/date_object.cpp #1.96:1.97
@@ -789,4 +789,9 @@ double KJS::KRFCDate_parseDate(const USt
dateString++;
}
+ // missing delimiter between month and day (like "January29")?
+ if (month == -1 && dateString && wordStart != dateString) {
+ month = findMonth(wordStart);
+ // TODO: emit warning about dubious format found
+ }
while(*dateString && isspace(*dateString))
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic