Ignore:
Timestamp:
2015-04-21T00:42:50+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #11359 - update to metadata-extractor 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/drew/metadata/exif/GpsDescriptor.java

    r8132 r8243  
    109109    {
    110110        // time in hour, min, sec
    111         int[] timeComponents = _directory.getIntArray(TAG_TIME_STAMP);
    112         return timeComponents == null ? null : String.format("%d:%d:%d UTC", timeComponents[0], timeComponents[1], timeComponents[2]);
     111        Rational[] timeComponents = _directory.getRationalArray(TAG_TIME_STAMP);
     112        DecimalFormat df = new DecimalFormat("00.00");
     113        return timeComponents == null
     114            ? null
     115            : String.format("%02d:%02d:%s UTC",
     116                timeComponents[0].intValue(),
     117                timeComponents[1].intValue(),
     118                df.format(timeComponents[2].doubleValue()));
    113119    }
    114120
Note: See TracChangeset for help on using the changeset viewer.