Changeset 35058 in osm for applications


Ignore:
Timestamp:
2019-07-09T01:47:21+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm17903 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/http2/src/org/openstreetmap/josm/plugins/http2/Http2Client.java

    r35053 r35058  
    1515import java.time.Duration;
    1616import java.time.LocalDateTime;
     17import java.time.ZoneOffset;
    1718import java.time.format.DateTimeFormatter;
    1819import java.time.temporal.ChronoField;
     
    5758        if (getIfModifiedSince() > 0) {
    5859            requestBuilder.header("If-Modified-Since", DateTimeFormatter.RFC_1123_DATE_TIME.format(
    59                     LocalDateTime.ofEpochSecond(getIfModifiedSince(), 0, null)));
     60                    LocalDateTime.ofEpochSecond(getIfModifiedSince(), 0, ZoneOffset.UTC)));
    6061        }
    6162        if (!isUseCache()) {
Note: See TracChangeset for help on using the changeset viewer.