改进代码
This commit is contained in:
@@ -24,5 +24,5 @@ void frmNtpClient::on_btnGetTime_clicked()
|
||||
|
||||
void frmNtpClient::receiveTime(const QDateTime &dateTime)
|
||||
{
|
||||
ui->txtTime->setText(dateTime.toString("yyyy-MM-dd HH:mm:ss"));
|
||||
ui->txtTime->setText(dateTime.toString("yyyy-MM-dd HH:mm:ss zzz"));
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "ntpclient.h"
|
||||
#include "qmutex.h"
|
||||
#include "qudpsocket.h"
|
||||
#include "qdebug.h"
|
||||
|
||||
QScopedPointer<NtpClient> NtpClient::self;
|
||||
NtpClient *NtpClient::Instance()
|
||||
|
||||
Reference in New Issue
Block a user