Bug #493
exiv2 -T DST problem
Start date:
Due date:
% Done:
0%
Estimated time:
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
History
Updated by Andreas Huggel about 15 years ago
Fix suggested by John (johnpcass at yahoo dot com)
Updated by Andreas Huggel about 15 years ago
Original post is at http://uk.groups.yahoo.com/group/exiv2/message/530
Initialise tm_isdst to -1 when converting a date/time string. Fixes #493.