Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Getting the date from EXIF is quite a pain now, you need to use three attributes like TAG_DATETIME_ORIGINAL,TAG_SUBSEC_TIME_ORIGINAL andTAG_OFFSET_TIME_ORIGINAL and do quite complex formatting on it.
The Exifinterface 1.3.6 class already has one very useful method
But why it is restricted to library scope only? Would be very useful to provide it outside.
There is currently one issue with that. It handles all images without TAG_OFFSET_TIME_ORIGINAL as UTC timezone, which does not match with
MediaStore.Images.Media.DATA
, where is alsoMediaStore.Images.Media.DATE_TAKEN
but there are all photos without timezone offset handled as local time zone (based on phone settings), so basically all photo without timezone has different time unless you are directly in UTC timezone.Hard to say what is the correct behavior. All my photos without time zone are from older Android device and they are taken in my local timezone.
Or screenshots, where is time zone for some reason missing even on Android 13 (Samsung device).