From 8efd01474846b3dd336cc67f79c4eb346e48a001 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 24 Nov 2011 23:30:13 +1000 Subject: [PATCH] Oximetry save was adding imported data one day back too many --- oximetry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oximetry.cpp b/oximetry.cpp index 6bcc9b3e..587275e1 100644 --- a/oximetry.cpp +++ b/oximetry.cpp @@ -359,7 +359,7 @@ void CMS50Serial::onReadyRead() qDebug() << "Session start (according to CMS50)" << d << h << m; } else { // otherwise pick the first session of the last days data.. - Day *day=PROFILE.GetDay(PROFILE.LastDay().addDays(-1),MT_CPAP); + Day *day=PROFILE.GetDay(PROFILE.LastDay(),MT_CPAP); QDateTime d; if (day) { @@ -371,7 +371,7 @@ void CMS50Serial::onReadyRead() qDebug() << "Can't guess start time, defaulting to 6pm yesterday" << d; d=QDateTime::currentDateTime(); d.setTime(QTime(18,0,0)); - d.addDays(-1); + //d.addDays(-1); } f2time.push_back(d); }