Changeset 10475 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-06-24T08:36:12+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r10001 r10475 20 20 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 21 21 import org.openstreetmap.josm.data.gpx.WayPoint; 22 import org.openstreetmap.josm.tools.date.DateUtils; 22 23 23 24 /** … … 166 167 167 168 public NmeaReader(InputStream source) throws IOException { 169 rmcTimeFmt.setTimeZone(DateUtils.UTC); 170 rmcTimeFmtStd.setTimeZone(DateUtils.UTC); 168 171 169 172 // create the data tree -
trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java
r10212 r10475 30 30 public final class DateUtils { 31 31 32 /** 33 * The UTC time zone. 34 */ 35 public static final TimeZone UTC = TimeZone.getTimeZone("UTC"); 36 32 37 protected DateUtils() { 33 38 // Hide default constructor for utils classes … … 46 51 * with the timezone lookup, is very expensive. 47 52 */ 48 private static final GregorianCalendar calendar = new GregorianCalendar( TimeZone.getTimeZone("UTC"));53 private static final GregorianCalendar calendar = new GregorianCalendar(UTC); 49 54 private static final GregorianCalendar calendarLocale = new GregorianCalendar(TimeZone.getDefault()); 50 55 private static final DatatypeFactory XML_DATE;
Note:
See TracChangeset
for help on using the changeset viewer.