Bug #493

exiv2 -T DST problem

Added by Andreas Huggel almost 11 years ago. Updated almost 9 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:

0%

Category:tools
Target version:0.12

Description

I'm living in London. I had my Nikon D70 clock set to the correct BST
during summertime (i.e. GMT +1 hour).

I have now uploaded some pictures and am renaming / processing using
exiv2 utility.

exiv2 shows the Date and Time stored in the NEF files correctly (e.g.
a photo taken at 12:04 on 2nd Sept shows "2006:09:02 12:04:49"

Now this is stored as an ascii string (I understand) and there is no
TimeZone info in the camera or the NEF file.

So when I ask exiv2 to re-touch the file to the exif timestamp
(exiv2 -T mv DSC_3142.NEF)

it actually sets the file creation time to 2006:09:02 13:04:49

This is obviously an hour out.

Associated revisions

Revision 933
Added by Andreas Huggel almost 11 years ago

Initialise tm_isdst to -1 when converting a date/time string. Fixes #493.

History

#1 Updated by Andreas Huggel almost 11 years ago

r933

Fix suggested by John (johnpcass at yahoo dot com)

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux