summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-03-26 14:47:04 (GMT)
committerPeter Hartmann <peter.hartmann@trolltech.com>2009-03-30 15:44:23 (GMT)
commit36b7256f87f97a84f1a1331c68d5ef7783aef9ab (patch)
treef3041d1d81e77a325723c98592b76376b031e9d5 /src/network
parent83dc49feaf56bdf469388174972fa6fc815b844b (diff)
downloadQt-36b7256f87f97a84f1a1331c68d5ef7783aef9ab.zip
Qt-36b7256f87f97a84f1a1331c68d5ef7783aef9ab.tar.gz
Qt-36b7256f87f97a84f1a1331c68d5ef7783aef9ab.tar.bz2
When doing date comparisons, force to the same timezone.
It's the logical time that matters, not the exact date representation. Signed-off-by: Peter Hartmann <peter.hartmann@trolltech.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/access/qnetworkcookie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkcookie.cpp b/src/network/access/qnetworkcookie.cpp
index 56cb539..852fcd6 100644
--- a/src/network/access/qnetworkcookie.cpp
+++ b/src/network/access/qnetworkcookie.cpp
@@ -164,7 +164,7 @@ bool QNetworkCookie::operator==(const QNetworkCookie &other) const
return true;
return d->name == other.d->name &&
d->value == other.d->value &&
- d->expirationDate == other.d->expirationDate &&
+ d->expirationDate.toUTC() == other.d->expirationDate.toUTC() &&
d->domain == other.d->domain &&
d->path == other.d->path &&
d->secure == other.d->secure &&