metadata-extractor-dotnet icon indicating copy to clipboard operation
metadata-extractor-dotnet copied to clipboard

Another date format not covered by TryGetDateTime

Open RealDolos opened this issue 3 years ago • 3 comments

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

RealDolos avatar Apr 27 '21 13:04 RealDolos

@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.

drewnoakes avatar Apr 29 '21 23:04 drewnoakes

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....

RealDolos avatar May 17 '21 15:05 RealDolos

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.

drewnoakes avatar May 18 '21 01:05 drewnoakes