svnno****@sourc*****
svnno****@sourc*****
2009年 7月 12日 (日) 13:20:57 JST
Revision: 2404 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2404 Author: nogu Date: 2009-07-12 13:20:57 +0900 (Sun, 12 Jul 2009) Log Message: ----------- use KDateTime instead of K3RFCDate Modified Paths: -------------- kita/branches/KITA-KDE4/kita/src/libkita/access.cpp Modified: kita/branches/KITA-KDE4/kita/src/libkita/access.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/libkita/access.cpp 2009-07-12 03:55:48 UTC (rev 2403) +++ kita/branches/KITA-KDE4/kita/src/libkita/access.cpp 2009-07-12 04:20:57 UTC (rev 2404) @@ -14,8 +14,8 @@ #include <QtCore/QFile> #include <QtCore/QRegExp> +#include <kdatetime.h> #include <kurl.h> -#include <k3rfcdate.h> #include <kio/job.h> #include <kio/jobuidelegate.h> #include <kio/slaveconfig.h> @@ -331,7 +331,8 @@ // 'Date' header is not found. use current time. return QDateTime::currentDateTime().toTime_t(); } else { - return K3RFCDate::parseDate(regexp.cap(1)); + return KDateTime::fromString(regexp.cap(1), KDateTime::RFCDate) + .toTime_t(); } }