mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue