Changeset 17723 in josm for trunk/test


Ignore:
Timestamp:
2021-04-09T07:54:25+02:00 (4 years ago)
Author:
simon04
Message:

see #14176 - Fix Instant writing in GpsWriterTest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/io/GpxWriterTest.java

    r17722 r17723  
    1212import java.time.ZoneOffset;
    1313import java.util.Arrays;
    14 import java.util.Date;
    1514import java.util.HashMap;
    1615import java.util.function.Consumer;
     
    7372        // Checks that time stored as date is correctly written into XML timestamp
    7473        testSingleWaypoint(
    75                 w -> w.put(GpxConstants.PT_TIME, Date.from(LocalDate.of(2018, Month.AUGUST, 2).atStartOfDay(ZoneOffset.UTC).toInstant())),
     74                w -> w.put(GpxConstants.PT_TIME, LocalDate.of(2018, Month.AUGUST, 2).atStartOfDay(ZoneOffset.UTC).toInstant()),
    7675                "    <time>2018-08-02T00:00:00Z</time>\n");
    7776    }
Note: See TracChangeset for help on using the changeset viewer.