mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Adjust default start time of added dive
It should be 'now' in the current timezone. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4e9a29a0af
commit
f11b2274ec
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ void MainWindow::on_actionAddDive_triggered()
|
|||
DivePlannerPointsModel::instance()->setPlanMode(false);
|
||||
// now cheat - create one dive that we use to store the info tab data in
|
||||
struct dive *dive = alloc_dive();
|
||||
dive->when = QDateTime::currentMSecsSinceEpoch() / 1000L;
|
||||
dive->when = QDateTime::currentMSecsSinceEpoch() / 1000L + gettimezoneoffset();
|
||||
const char* model = strdup(tr("manually added dive").toLocal8Bit().constData());
|
||||
dive->dc.model = model; // do not use tr here since it expects a char*.
|
||||
record_dive(dive);
|
||||
|
|
Loading…
Add table
Reference in a new issue