summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/base/httpget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp
index 58f6bd5e09..8005d4848b 100644
--- a/rbutil/rbutilqt/base/httpget.cpp
+++ b/rbutil/rbutilqt/base/httpget.cpp
@@ -361,9 +361,7 @@ void HttpGet::httpFinished(int id, bool error)
361 date.remove(0, date.indexOf(" ") + 1); 361 date.remove(0, date.indexOf(" ") + 1);
362 if(date.endsWith("GMT")) date.truncate(date.indexOf(" GMT")); 362 if(date.endsWith("GMT")) date.truncate(date.indexOf(" GMT"));
363 // distinguish input formats (see RFC1945) 363 // distinguish input formats (see RFC1945)
364 if(date.contains("-")) // RFC 850 364 if(date.at(0).isLetter()) // asctime format
365 m_serverTimestamp = QLocale::c().toDateTime(date, "dd-MMM-yy hh:mm:ss");
366 else if(date.at(0).isLetter()) // asctime format
367 m_serverTimestamp = QLocale::c().toDateTime(date, "MMM d hh:mm:ss yyyy"); 365 m_serverTimestamp = QLocale::c().toDateTime(date, "MMM d hh:mm:ss yyyy");
368 else // RFC 822 366 else // RFC 822
369 m_serverTimestamp = QLocale::c().toDateTime(date, "dd MMM yyyy hh:mm:ss"); 367 m_serverTimestamp = QLocale::c().toDateTime(date, "dd MMM yyyy hh:mm:ss");