Changeset 14079 in josm for trunk/src


Ignore:
Timestamp:
2018-08-03T18:18:43+02:00 (12 months ago)
Author:
Don-vip
Message:

see #16550 - use UTC by default for GPX timestamps

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java

    r14055 r14079  
    1818import java.util.List;
    1919import java.util.Map;
    20 import java.util.TimeZone;
    2120
    2221import javax.swing.ImageIcon;
     
    238237    private Marker(LatLon ll, TemplateEngineDataProvider dataProvider, String text, String iconName, MarkerLayer parentLayer,
    239238            double time, double offset) {
    240         timeFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
    241239        setCoor(ll);
    242240
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r14055 r14079  
    263263     */
    264264    public static DateFormat getGpxFormat() {
    265         return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
     265        SimpleDateFormat result = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
     266        result.setTimeZone(UTC);
     267        return result;
    266268    }
    267269
Note: See TracChangeset for help on using the changeset viewer.