From a8978b2ae4e3e475514d25ffb490b6f530f3339b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 20 Jan 2011 20:58:24 +0000 Subject: [PATCH] Fix compatibility with Qt < 4.7 --- src/smtp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smtp.cpp b/src/smtp.cpp index 5d72128ba..57579e05f 100644 --- a/src/smtp.cpp +++ b/src/smtp.cpp @@ -23,7 +23,7 @@ Smtp::Smtp(const QString &from, const QString &to, const QString &subject, const connect( socket, SIGNAL( readyRead() ), this, SLOT( readyRead() ) ); QTextCodec* latin1 = QTextCodec::codecForName("latin1"); message = ""; - message += encode_mime_header("Date", QDateTime::currentDateTimeUtc().toString("ddd, d MMM yyyy hh:mm:ss UT"), latin1); + message += encode_mime_header("Date", QDateTime::currentDateTime().toUTC().toString("ddd, d MMM yyyy hh:mm:ss UT"), latin1); message += encode_mime_header("From", from, latin1); message += encode_mime_header("Subject", subject, latin1); message += encode_mime_header("To", to, latin1);