diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-01-20 22:48:11 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-01-20 22:48:11 +0000 |
commit | f18b9d9d780ad9b49719c7663dc5a2b23c86b87e (patch) | |
tree | 0b3a263dec41d82c53401420cac446c9c0c3eb3e /rbutil/rbutilqt/base/httpget.cpp | |
parent | 8363619e666b37cf8e33f71ea1bfe44676b401e3 (diff) |
Make parsing the server date locale independent also for asctime and RFC850 representation.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24302 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/httpget.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/httpget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp index 05f5e87ab4..a076460470 100644 --- a/rbutil/rbutilqt/base/httpget.cpp +++ b/rbutil/rbutilqt/base/httpget.cpp @@ -375,10 +375,10 @@ void HttpGet::httpFinished(int id, bool error) // distinguish input formats (see RFC1945) // RFC 850 if(date.contains("-")) - m_serverTimestamp = QDateTime::fromString(date, "dd-MMM-yy hh:mm:ss"); + m_serverTimestamp = QLocale::c().toDateTime(date, "dd-MMM-yy hh:mm:ss"); // asctime format else if(date.at(0).isLetter()) - m_serverTimestamp = QDateTime::fromString(date, "MMM d hh:mm:ss yyyy"); + m_serverTimestamp = QLocale::c().toDateTime(date, "MMM d hh:mm:ss yyyy"); // RFC 822 else m_serverTimestamp = QLocale::c().toDateTime(date, "dd MMM yyyy hh:mm:ss"); |