- Timestamp:
- 2016-02-07T17:19:21+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r9742 r9752 96 96 97 97 private final transient GeoImageLayer yLayer; 98 private Timezone timezone;99 private Offset delta;98 private transient Timezone timezone; 99 private transient Offset delta; 100 100 101 101 /** … … 1467 1467 1468 1468 int getDayOffset() { 1469 final double diffInH = (double)getMilliseconds() / 1000. / 60 / 60; // hours1469 final double diffInH = getMilliseconds() / 1000. / 60 / 60; // hours 1470 1470 1471 1471 // Find day difference … … 1474 1474 1475 1475 Offset withoutDayOffset() { 1476 return milliseconds(getMilliseconds() - getDayOffset() * 24 * 60 * 60 * 1000);1476 return milliseconds(getMilliseconds() - getDayOffset() * 24L * 60L * 60L * 1000L); 1477 1477 } 1478 1478 1479 1479 Pair<Timezone, Offset> splitOutTimezone() { 1480 1480 // In hours, rounded to two decimal places 1481 double tz = ( double) Math.round(withoutDayOffset().getSeconds() * 100 / (60 * 60)) / 100;1481 double tz = (withoutDayOffset().getSeconds() * 100L / (60L * 60L)) / 100.0; 1482 1482 1483 1483 // Due to imprecise clocks we might get a "+3:28" timezone, which should obviously be 3:30 with
Note:
See TracChangeset
for help on using the changeset viewer.