drewnoakes / metadata-extractor-dotnet

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Other
934 stars 165 forks source link

Another date format not covered by TryGetDateTime #284

Open RealDolos opened 3 years ago

RealDolos commented 3 years ago

DirectoryExtensions.TryGetDateTime uses an exhaustive list of date formats to try when parsing Exif date-time strings.

I just stumbled upon a file containing the following date-time strings (as DateDigitized/DateOriginal): 2007/06/30 18:45:17 The data was probably produced by some device called 3MegaCam. Sounds like a cheap and very old digicam. ¯\(ツ)/¯ This date-time format with slashes as delimiters for the date components is not covered by DirectoryExtensions.TryGetDateTime's current format list

drewnoakes commented 3 years ago

@RealDolos thanks for the report. Are you able to publicly share a file that contains this data? It would help ensure that any fix here is not regressed in future.

RealDolos commented 3 years ago

Are you able to publicly share a file that contains this data?

Not the original file, I could produce one that has the same exif dates in it....

drewnoakes commented 3 years ago

Sure, any image with this format would be helpful. Thanks.

You're welcome to submit a pull request that adds the date format too, if you'd like.