Ignore:
Timestamp:
2018-11-25T12:55:56+01:00 (5 years ago)
Author:
Don-vip
Message:

see #16995 - proper fix to timestamp formatting in GPX files, does not append trailing subsecond zeroes (patch by cmuelle8)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxWriter.java

    r14243 r14448  
    3737 */
    3838public class GpxWriter extends XmlWriter implements GpxConstants {
    39 
    40     private final DateFormat gpxFormat = DateUtils.getGpxFormat();
    4139
    4240    /**
     
    121119                    Object val = obj.get(key);
    122120                    if (val instanceof Date) {
    123                         simpleTag(key, gpxFormat.format(val));
     121                        simpleTag(key, DateUtils.fromDate((Date) val));
    124122                    } else if (val instanceof Number) {
    125123                        simpleTag(key, val.toString());
Note: See TracChangeset for help on using the changeset viewer.