Project

General

Profile

Bug #493

exiv2 -T DST problem

Added by Andreas Huggel about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
tools
Target version:
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

Revision 933 (diff)
Added by Andreas Huggel about 15 years ago

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

History

#1

Updated by Andreas Huggel about 15 years ago

r933

Fix suggested by John (johnpcass at yahoo dot com)

Also available in: Atom PDF