Skip to content

Commit

Permalink
Use correct time in Airplay server response.
Browse files Browse the repository at this point in the history
We've been using localtime in a date time string with GMT appended to it...
  • Loading branch information
daniel-kristjansson committed Jul 6, 2012
1 parent d7a27a1 commit 3756e32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/AirPlay/mythairplayserver.cpp
Expand Up @@ -9,6 +9,7 @@
#include <QKeyEvent>

#include "mthread.h"
#include "mythdate.h"
#include "mythlogging.h"
#include "mythcorecontext.h"
#include "mythuiactions.h"
Expand Down Expand Up @@ -742,7 +743,7 @@ void MythAirplayServer::SendResponse(QTcpSocket *socket,
reply.append(StatusToString(status));
reply.append("\r\n");
reply.append("DATE: ");
reply.append(QDateTime::currentDateTime().toString("ddd, d MMM yyyy hh:mm:ss"));
reply.append(MythDate::current().toString("ddd, d MMM yyyy hh:mm:ss"));
reply.append(" GMT\r\n");
if (header.size())
reply.append(header);
Expand Down

0 comments on commit 3756e32

Please sign in to comment.