Camera Exif Timestamp

novas0x2a

New Member
Joined
Sep 22, 2010
Messages
1
Reaction score
0
I can't seem to find references to this anywhere (except here, a thread I also commented on). Has anyone noticed the bug where the Camera sets the DateTimeOriginal Exif tag to UTC time instead of localtime?

EXIF.DateTimeOriginal and EXIF.CreateDate do not contain room for a timezone. As such, they are supposed to be timestamped in local time. The Droidx sets the timestamp to UTC, which confuses things that care about the timestamp.

There are two possible fixes for this (both trivial...)
  1. Set EXIF.ModifyDate, EXIF.DateTimeOriginal, EXIF.CreateDate in localtime, as is the convention everywhere else for these tags.
  2. Do not set the above tags at all. Instead use the XMP family of tags (XMP.DateTimeOriginal and friends) which contain room for the timezone.

The former is both easier and correct, so that would be my preference.

If you'd like to see the bug, though there's not much to see, go here, download the original size, and use something like exiftool to examine the tags:


Code:
mike@hyperion:~> exiftool -G -s 5014190454_fdd2427338_o.jpg | grep '\(Time\|Date\)'
[File]          FileModifyDate                  : 2010:09:22 14:49:23-07:00
[EXIF]          ModifyDate                      : 2010:09:22 06:37:11
[EXIF]          ExposureTime                    : 1/17
[EXIF]          DateTimeOriginal                : 2010:09:22 06:37:11
[EXIF]          CreateDate                      : 2010:09:22 06:37:11
[EXIF]          GPSTimeStamp                    : 06:36:06
[EXIF]          GPSDateStamp                    : 2010:09:22
[Composite]     GPSDateTime                     : 2010:09:22 06:36:06Z

As you can see, the EXIF tags are all set to UTC (since they match GPSTimeStamp, which SHOULD be UTC). I am in -0700, so that represents a 7-hour error.
 

nrogers64

New Member
Joined
Oct 4, 2010
Messages
1
Reaction score
0
I have a Droid 2 with this same problem. I've been using Jhead to modify the Exif date and times like so:

jhead -ta-7 2010-09-11_16-14-58_534.jpg

Here is all of the file's data that relates to date and time before running the above command:

--------------------------------------------------
File Name : 2010-09-11_16-14-58_534.jpg
File Modification Date/Time : 2010:09:11 16:14:58-07:00
Modify Date : 2010:09:11 23:14:57
Date/Time Original : 2010:09:11 23:14:57
Create Date : 2010:09:11 23:14:57
GPS Time Stamp : 23:13:55
GPS Date/Time : 2010:09:11 23:13:55Z
--------------------------------------------------

After running the above command, the middle three items in the above list are changed to the following:

--------------------------------------------------
Modify Date : 2010:09:11 16:14:57
Date/Time Original : 2010:09:11 16:14:57
Create Date : 2010:09:11 16:14:57
--------------------------------------------------

The remaining four items in the first list above retain their original values.
 
Top