Skip to content

Commit

Permalink
Fix log date and time
Browse files Browse the repository at this point in the history
Convert microseconds to milliseconds before calling
convert fromMSecsSinceEpoch.
  • Loading branch information
kmdewaal committed Feb 12, 2021
1 parent 37ef384 commit 869e499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void LoggingItem::setThreadTid(void)
/// \brief Convert numerical timestamp to a readable date and time.
QString LoggingItem::getTimestamp (const char *format) const
{
QDateTime epoch = QDateTime::fromMSecsSinceEpoch(m_epoch.count());
QDateTime epoch = QDateTime::fromMSecsSinceEpoch(m_epoch.count()/1000);
QString timestamp = epoch.toString(format);
return timestamp;
}
Expand Down

0 comments on commit 869e499

Please sign in to comment.