diff options
-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) | |||
375 | // distinguish input formats (see RFC1945) | 375 | // distinguish input formats (see RFC1945) |
376 | // RFC 850 | 376 | // RFC 850 |
377 | if(date.contains("-")) | 377 | if(date.contains("-")) |
378 | m_serverTimestamp = QDateTime::fromString(date, "dd-MMM-yy hh:mm:ss"); | 378 | m_serverTimestamp = QLocale::c().toDateTime(date, "dd-MMM-yy hh:mm:ss"); |
379 | // asctime format | 379 | // asctime format |
380 | else if(date.at(0).isLetter()) | 380 | else if(date.at(0).isLetter()) |
381 | m_serverTimestamp = QDateTime::fromString(date, "MMM d hh:mm:ss yyyy"); | 381 | m_serverTimestamp = QLocale::c().toDateTime(date, "MMM d hh:mm:ss yyyy"); |
382 | // RFC 822 | 382 | // RFC 822 |
383 | else | 383 | else |
384 | m_serverTimestamp = QLocale::c().toDateTime(date, "dd MMM yyyy hh:mm:ss"); | 384 | m_serverTimestamp = QLocale::c().toDateTime(date, "dd MMM yyyy hh:mm:ss"); |