mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05:00
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:
parent
9113a5b772
commit
c79fe70549
@ -1,4 +1,4 @@
|
||||
//-------------------------------------------------------------- MainWindow
|
||||
//------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
10
plotter.cpp
10
plotter.cpp
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user