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>
This commit is contained in:
Dirk Hohndel 2015-10-21 22:52:09 +09:00
parent c0fb98711b
commit 569cfe1bc8

View file

@ -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)