Display UTC correctly on waterfall.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@7516 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-01-16 20:27:03 +00:00
parent 9113a5b772
commit c79fe70549
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
//-------------------------------------------------------------- MainWindow
//------------------------------------------------------------- MainWindow
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "devsetup.h"

View File

@ -260,19 +260,15 @@ void CPlotter::UTCstr()
{
int ihr,imin,isec;
if(datcom_.ndiskdat != 0) {
ihr=datcom_.nutc/10000;
imin=(datcom_.nutc/100) % 100;
isec=datcom_.nutc % 100;
ihr=datcom_.nutc/100;
imin=(datcom_.nutc) % 100;
} else {
qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000;
imin=ms/60000;
ihr=imin/60;
imin=imin % 60;
isec=(ms/1000) % 60;
}
if(isec<30) isec=0;
if(isec>=30) isec=30;
sprintf(m_sutc,"%2.2d:%2.2d:%2.2d",ihr,imin,isec);
sprintf(m_sutc,"%2.2d:%2.2d",ihr,imin);
}
void CPlotter::DrawOverlay() //DrawOverlay()