Skip to content

Commit

Permalink
see #21257 - output metadata/time during GPX export, like gpsbabel
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@18206 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
don-vip committed Sep 11, 2021
1 parent 5cd1fbe commit 0f0002c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/org/openstreetmap/josm/io/GpxWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ private void writeMetaData() {
simpleTag("keywords", data.getString(META_KEYWORDS));
}

simpleTag("time", Instant.now().toString());

Bounds bounds = data.recalculateBounds();
if (bounds != null) {
String b = "minlat=\"" + bounds.getMinLat() + "\" minlon=\"" + bounds.getMinLon() +
Expand Down

0 comments on commit 0f0002c

Please sign in to comment.