Ignore:
Timestamp:
2019-05-04T14:17:27+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #17576 - Fix timezones and DST for image correlation (patch by Bjoeni, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/date/DateUtils.java

    r14434 r15045  
    77import java.time.DateTimeException;
    88import java.time.Instant;
    9 import java.time.ZoneId;
    109import java.time.ZoneOffset;
    1110import java.time.ZonedDateTime;
     
    101100                parsePart2(str, 17),
    102101                0,
    103                 // consider EXIF date in default timezone
    104                 checkLayout(str, "xxxx:xx:xx xx:xx:xx") ? ZoneId.systemDefault() : ZoneOffset.UTC
     102                ZoneOffset.UTC
    105103            );
    106104            if (str.length() == 22 || str.length() == 25) {
     
    123121                parsePart2(str, 17),
    124122                parsePart3(str, 20) * 1_000_000,
    125                 // consider EXIF date in default timezone
    126                 checkLayout(str, "xxxx:xx:xx xx:xx:xx.xxx") ? ZoneId.systemDefault() : ZoneOffset.UTC
     123                ZoneOffset.UTC
    127124            );
    128125            if (str.length() == 29) {
Note: See TracChangeset for help on using the changeset viewer.