[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.3/kdebase/apps/konqueror/settings/kio
From: Dawit Alemayehu <adawit () kde ! org>
Date: 2009-12-14 17:30:59
Message-ID: 1260811859.929957.5598.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1062413 by adawit:
Backport the fix for the Y2K38 problem with the cookiejar's expiration date variable
M +3 -3 kcookiesmanagement.cpp
--- branches/KDE/4.3/kdebase/apps/konqueror/settings/kio/kcookiesmanagement.cpp #1062412:1062413
@@ -31,7 +31,6 @@
#include <QtGui/QPushButton>
#include <QtGui/QLabel>
#include <QtCore/QTimer>
-#include <QtCore/QDate>
#include <QtGui/QToolButton>
#include <QtGui/QBoxLayout>
#include <QtCore/QList>
@@ -46,6 +45,7 @@
#include <klineedit.h>
#include <kmessagebox.h>
#include <kurl.h>
+#include <kdatetime.h>
// Local
#include "kcookiesmain.h"
@@ -335,13 +335,13 @@
if (c == fieldVal.end()) // empty list, do not crash
return false;
cookie->value = *c++;
- unsigned tmp = (*c++).toUInt();
+ qint64 tmp = (*c++).toLongLong();
if( tmp == 0 )
cookie->expireDate = i18n("End of session");
else
{
- QDateTime expDate;
+ KDateTime expDate;
expDate.setTime_t(tmp);
cookie->expireDate = KGlobal::locale()->formatDateTime(expDate);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic