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

Fix NikonType2 getPowerUpTimeDescription #366

Merged

Conversation

kwhopper
Copy link
Collaborator

With help from Exiftool sources - this value isn't a unix-style int64. The bytes directly describe the date and time.

@kwhopper kwhopper changed the title Fix NikonType2 getPowerUpTimeDescription. Fix NikonType2 getPowerUpTimeDescription Sep 28, 2018
@@ -25,6 +25,7 @@
import com.drew.lang.annotations.Nullable;
import com.drew.metadata.TagDescriptor;

import java.nio.ByteBuffer;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this bump our minimum supported Java version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The usage was borrowed from here:

Source/com/drew/metadata/iptc/Iso2022Converter.java

https://github.com/drewnoakes/metadata-extractor/blob/f20c80a3fe2cbcdba437970c12b3993d1d2650fd/Source/com/drew/metadata/iptc/Iso2022Converter.java

So I don't believe it changes anything on Java support. The documentation indicates this has been available since 1.4:

https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html

1.5 is the minimum for MetadataExtractor, correct?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following up. Yes, 1.5 is the target.

@drewnoakes drewnoakes merged commit 47e2bff into drewnoakes:master Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants