summaryrefslogtreecommitdiffstats
path: root/qt-models/divesummarymodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/divesummarymodel.cpp')
-rw-r--r--qt-models/divesummarymodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divesummarymodel.cpp b/qt-models/divesummarymodel.cpp
index f12a345e5..d187f2b58 100644
--- a/qt-models/divesummarymodel.cpp
+++ b/qt-models/divesummarymodel.cpp
@@ -263,7 +263,7 @@ void DiveSummaryModel::calc(int column, int period)
if (startTime == currentTime)
start = 0;
else
- start = startTime.toMSecsSinceEpoch() / 1000L + gettimezoneoffset();
+ start = dateTimeToTimestamp(startTime) + gettimezoneoffset();
// Loop over all dives and sum up data
Stats stats = loopDives(start);