diff options
Diffstat (limited to 'subsurface-core/qthelper.cpp')
-rw-r--r-- | subsurface-core/qthelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index b667ab206..a840f4dd2 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -203,7 +203,7 @@ void Dive::put_divemaster() void Dive::put_date_time() { - QDateTime localTime = QDateTime::fromTime_t(dive->when - gettimezoneoffset(displayed_dive.when)); + QDateTime localTime = QDateTime::fromTime_t(dive->when - gettimezoneoffset(dive->when)); localTime.setTimeSpec(Qt::UTC); m_date = localTime.date().toString(prefs.date_format); m_time = localTime.time().toString(prefs.time_format); |