Comment 10 for bug 1418639

Revision history for this message
Alan Pater (alan-pater) wrote :

Hi all. I stumbled on this issue looking for info on setting timezone info in exif. I'm a contributor to the exiv2 library and have been hacking away at DateTime conversions.

The sample file metadata does indeed show 2 different times, none with any timezone information.

$ exiv2 -pa image20150218_201804172.jpg | grep DateTime

 Exif.Photo.DateTimeOriginal Ascii 20 2015:02:18 20:18:05
 Exif.Photo.DateTimeDigitized Ascii 20 2015:02:18 20:18:05
 Exif.Image.DateTime Ascii 20 2015:02:18 21:18:05

That last field, Exif.Image.DateTime, is the image modified time according to MWG guidelines (1). Without knowing anything about mediascanner, I would suggest that Exif.Photo.DateTimeOriginal might be what you want to be storing in the db.

(1)http://www.metadataworkinggroup.org/pdf/mwg_guidance.pdf#page=37