Skip to content

Commit

Permalink
fix issue #46 : gpx filename without semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Oct 1, 2023
1 parent 5af34ff commit ad11ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void TrackerModule::onStopRecording()
gpx.waypoints.insert(gpx.waypoints.end(), waypoints.begin(), waypoints.end());
QDateTime fdate = QDateTime();
fdate.setMSecsSinceEpoch(std::chrono::duration_cast<std::chrono::milliseconds>(beg.timestamp.value().time_since_epoch()).count());
gpx.name = std::optional<std::string>(fdate.toString(Qt::ISODate).toUtf8().toStdString());
gpx.name = std::optional<std::string>(fdate.toString("yyyy_MM_dd_hh_mm_ss").toUtf8().toStdString());
QString fname = fdate.toString(Qt::ISODate).append(".gpx");
if (!osmscout::gpx::ExportGpx(gpx, m_baseDir.absoluteFilePath(fname).toUtf8().toStdString()))
{
Expand Down

0 comments on commit ad11ec5

Please sign in to comment.