jokiazhang / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

Bad date from Directory.getDate(ExifIFD0Directory.TAG_DATETIME) #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi!

With the attached file we found on Internet, we get the date November, 30 -0002 
(2 BC) and used to cause our application to crash. This is certainly not the 
accurate date (not sure Coolpix S51 existed at the time... ;)

To reproduce :

    Metadata metadata = ImageMetadataReader.readMetadata(new BufferedInputStream(inputStream), true);
    Directory directory = metadata.getDirectory(ExifIFD0Directory.class);
    Date date = directory.getDate(ExifIFD0Directory.TAG_DATETIME);

where inputStream is a FileInputStream with the file provided in attachment.

Thank you!

Original issue reported on code.google.com by francois...@gmail.com on 4 Jun 2014 at 8:11

Attachments: