summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-21 22:52:09 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-22 07:04:32 +0900
commit569cfe1bc8849cc23d68de8de4712ee4cdba4337 (patch)
tree9f1411a19775891382f7a2225e4280cd319399ec /qt-ui
parentc0fb98711b8d0380020477163cdf4e3e8fdb2c50 (diff)
downloadsubsurface-569cfe1bc8849cc23d68de8de4712ee4cdba4337.tar.gz
When calculating the offset, both times are localtime
So we don't need to take the relative time zone into account. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/simplewidgets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 4eeeb02ed..62a9cc646 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -311,7 +311,7 @@ void ShiftImageTimesDialog::dcDateTimeChanged(const QDateTime &newDateTime)
if (!dcImageEpoch)
return;
newtime.setTimeSpec(Qt::UTC);
- setOffset(newtime.toTime_t() + gettimezoneoffset(displayed_dive.when) - dcImageEpoch);
+ setOffset(newtime.toTime_t() - dcImageEpoch);
}
void ShiftImageTimesDialog::matchAllImagesToggled(bool state)