Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ISO8601 date time format in iPhone QuickTime files #257

Closed
michafrank opened this issue Jun 20, 2020 · 3 comments · Fixed by #275
Closed

Support for ISO8601 date time format in iPhone QuickTime files #257

michafrank opened this issue Jun 20, 2020 · 3 comments · Fixed by #275

Comments

@michafrank
Copy link
Contributor

The QuickTime .mov files produced by my iPhone use the ISO8601 format in the QuickTime Metadata Header, e.g. 2019-12-24T22:35:06+0100.

This format is not supported by the TryGetDateTime() extension function (in class DirectoryExtensions).

The date can be parsed with this custom date and time format string: yyyy-MM-ddTHH:mm:sszzz.

I propose to add this format string to the private list of formats in string[] _datePatterns which is used by the TryGetDateTime() function.

Thanks a lot for this great library!

@drewnoakes
Copy link
Owner

drewnoakes commented Jun 24, 2020

Sounds good. Can you submit a pull request?

If you're able to submit a sample file, it'd be great. Ideally something small (<1 sec of darkness should be fine).

@michafrank
Copy link
Contributor Author

There is already a file with this kind of metadata, see
https://github.com/drewnoakes/metadata-extractor-images/blob/master/mov/metadata/dotnet/with-gps.mov.txt

[QuickTime Metadata Header - 0x0007] Creation Date = 2019-07-24T11:25:40+0300

@drewnoakes
Copy link
Owner

#260 is merged, but the output for that MOV file is the same. The descriptor needs to be updated to interpret that field as a date. Currently it's just printing the directory's string verbatim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants