From 569cfe1bc8849cc23d68de8de4712ee4cdba4337 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 21 Oct 2015 22:52:09 +0900 Subject: 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 --- qt-ui/simplewidgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/simplewidgets.cpp') 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) -- cgit v1.2.3-70-g09d2