From d75a2e9fca1809146a50131c143fa8d636420cfb Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Mon, 17 Feb 2020 11:04:48 -0500 Subject: [PATCH] Fix debug message when skipping short sessions. The session ID is not a date on all machines. --- oscar/SleepLib/machine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar/SleepLib/machine.cpp b/oscar/SleepLib/machine.cpp index e765d9f5..9c128c27 100644 --- a/oscar/SleepLib/machine.cpp +++ b/oscar/SleepLib/machine.cpp @@ -387,7 +387,7 @@ bool Machine::AddSession(Session *s) if (session_length < ignore_sessions) { // keep the session to save importing it again, but don't add it to the day record this time qDebug() << s->session() << "Ignoring short session <" << ignore_sessions - << "["+QDateTime::fromTime_t(s->session()).toString("MMM dd, yyyy hh:mm:ss")+"]"; + << "["+QDateTime::fromMSecsSinceEpoch(s->first()).toString("MMM dd, yyyy hh:mm:ss")+"]"; return true; }