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:
parent
c0fb98711b
commit
569cfe1bc8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user