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.
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.
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. DateTimeOrigina l Ascii 20 2015:02:18 20:18:05 DateTimeDigitiz ed Ascii 20 2015:02:18 20:18:05 DateTime Ascii 20 2015:02:18 21:18:05
Exif.Photo.
Exif.Image.
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. DateTimeOrigina l might be what you want to be storing in the db.
(1)http:// www.metadatawor kinggroup. org/pdf/ mwg_guidance. pdf#page= 37