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

EXIF DateTimeOriginal timezone does not match MediaFile.getDate() from KeyNewlyGeneratedMediaFile #315

Open
brien-crean opened this issue Apr 16, 2024 · 1 comment

Comments

@brien-crean
Copy link

Timestamps returned by the SDK when new images are written to the SD card do not use the specified timezone set in Android.

Expected:
DateTimeOriginal EXIF tag time stamps on images to match the MediaFile.getDate() timestamps returned by the KeyNewlyGeneratedMediaFile listener triggered when new images are created.

Test:
I have a Mini 3 with an RC-N1 controller connected to an Android device and I am located in the PDT (UTC-7:00) timezone.

As a test, I set the timezone on the Android to EDT (UTC-4:00) and shot some images. EXIF data from the images taken with the drone have the EDT timezone in the DateTimeOriginal EXIF tag. However the MediaFile.getDate() returned from the SDK (KeyNewlyGeneratedMediaFile) at the time the image is created returns time stamps in the PDT (UTC-7:00) timezone.

Is the SDK getting the time zone information from somewhere else?

@dji-dev
Copy link
Contributor

dji-dev commented Apr 16, 2024

Agent comment from yating.liao in Zendesk ticket #105163:

The data obtained by KeyNewlyGeneratedMediaFile is the data pushed by the drone. From your test results, it may be using the time zone of the drone's location.

Why do you need to match the photo time across time zones?

°°°

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

No branches or pull requests

2 participants