diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-03-26 14:47:59 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@trolltech.com> | 2009-03-30 15:44:23 (GMT) |
commit | fde8457213eaa3da881d1afa8f9f2294acdc4877 (patch) | |
tree | 9fb3a3bd8b6ac3f95e0c5b823968164593e5c307 /src/network | |
parent | 36b7256f87f97a84f1a1331c68d5ef7783aef9ab (diff) | |
download | Qt-fde8457213eaa3da881d1afa8f9f2294acdc4877.zip Qt-fde8457213eaa3da881d1afa8f9f2294acdc4877.tar.gz Qt-fde8457213eaa3da881d1afa8f9f2294acdc4877.tar.bz2 |
Fix parsing of dates: if the month is followed by a dash, it's not the negative sign.
I don't know why, but this only triggers for the month of October
Signed-off-by: Peter Hartmann <peter.hartmann@trolltech.com>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/qnetworkcookie.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp index 852fcd6..286c5f6 100644 --- a/src/network/access/qnetworkcookie.cpp +++ b/src/network/access/qnetworkcookie.cpp @@ -636,6 +636,8 @@ static QDateTime parseDateString(const QByteArray &dateString) qDebug() << "Month:" << month; #endif at += 3; + if (at < dateString.length() && dateString[at] == '-') + ++at; continue; } // Zone |