diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-21 22:52:09 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-22 07:04:32 +0900 |
commit | 569cfe1bc8849cc23d68de8de4712ee4cdba4337 (patch) | |
tree | 9f1411a19775891382f7a2225e4280cd319399ec /qt-ui | |
parent | c0fb98711b8d0380020477163cdf4e3e8fdb2c50 (diff) | |
download | subsurface-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.cpp | 2 |
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) |