mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix compatibility with Qt < 4.7
This commit is contained in:
parent
fcf3b8e14a
commit
a8978b2ae4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue