Skip to content

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

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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 [email protected] on 4 Jun 2014 at 8:11

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions