mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-26 13:26:24 -04:00
force 24h time format
changed hh:mm to HH:mm changed dd.MM.yyyy to yyyy-MM-dd to uniform all date format
This commit is contained in:
@@ -317,7 +317,7 @@ void FileSourceGui::updateWithStreamData()
|
||||
ui->play->setEnabled(m_acquisition);
|
||||
QTime recordLength(0, 0, 0, 0);
|
||||
recordLength = recordLength.addSecs(m_recordLength);
|
||||
QString s_time = recordLength.toString("hh:mm:ss");
|
||||
QString s_time = recordLength.toString("HH:mm:ss");
|
||||
ui->recordLengthText->setText(s_time);
|
||||
updateWithStreamTime(); // TODO: remove when time data is implemented
|
||||
}
|
||||
@@ -335,15 +335,15 @@ void FileSourceGui::updateWithStreamTime()
|
||||
QTime t(0, 0, 0, 0);
|
||||
t = t.addSecs(t_sec);
|
||||
t = t.addMSecs(t_msec);
|
||||
QString s_timems = t.toString("hh:mm:ss.zzz");
|
||||
QString s_time = t.toString("hh:mm:ss");
|
||||
QString s_timems = t.toString("HH:mm:ss.zzz");
|
||||
QString s_time = t.toString("HH:mm:ss");
|
||||
ui->relTimeText->setText(s_timems);
|
||||
|
||||
quint64 startingTimeStampMsec = (quint64) m_startingTimeStamp * 1000LL;
|
||||
QDateTime dt = QDateTime::fromMSecsSinceEpoch(startingTimeStampMsec);
|
||||
dt = dt.addSecs((quint64) t_sec);
|
||||
dt = dt.addMSecs((quint64) t_msec);
|
||||
QString s_date = dt.toString("yyyy-MM-dd hh:mm:ss.zzz");
|
||||
QString s_date = dt.toString("yyyy-MM-dd HH:mm:ss.zzz");
|
||||
ui->absTimeText->setText(s_date);
|
||||
|
||||
if (!m_enableNavTime)
|
||||
|
||||
@@ -122,7 +122,7 @@ This counter counts the unrecoverable error conditions found (i.e. 4.4 between 1
|
||||
|
||||
<h4>4.9: events counters timer</h4>
|
||||
|
||||
This hh:mm:ss time display shows the time since the reset events counters button (4.6) was pushed.
|
||||
This HH:mm:ss time display shows the time since the reset events counters button (4.6) was pushed.
|
||||
|
||||
<h3>5: Network parameters</h3>
|
||||
|
||||
|
||||
@@ -519,7 +519,7 @@ void SDRdaemonSourceGui::displayEventTimer()
|
||||
int elapsedTimeMillis = m_eventsTime.elapsed();
|
||||
QTime recordLength(0, 0, 0, 0);
|
||||
recordLength = recordLength.addSecs(elapsedTimeMillis/1000);
|
||||
QString s_time = recordLength.toString("hh:mm:ss");
|
||||
QString s_time = recordLength.toString("HH:mm:ss");
|
||||
ui->eventCountsTimeText->setText(s_time);
|
||||
}
|
||||
|
||||
@@ -532,7 +532,7 @@ void SDRdaemonSourceGui::updateWithStreamTime()
|
||||
bool updateEventCounts = false;
|
||||
quint64 startingTimeStampMsec = ((quint64) m_startingTimeStamp.tv_sec * 1000LL) + ((quint64) m_startingTimeStamp.tv_usec / 1000LL);
|
||||
QDateTime dt = QDateTime::fromMSecsSinceEpoch(startingTimeStampMsec);
|
||||
QString s_date = dt.toString("yyyy-MM-dd hh:mm:ss.zzz");
|
||||
QString s_date = dt.toString("yyyy-MM-dd HH:mm:ss.zzz");
|
||||
ui->absTimeText->setText(s_date);
|
||||
|
||||
if (m_framesDecodingStatus == 2)
|
||||
|
||||
Reference in New Issue
Block a user