Bug 249785 - DNG Converter adds 1 hour to timestamp of Sony .arw files
Summary: DNG Converter adds 1 hour to timestamp of Sony .arw files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-DngConverter (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-01 21:42 UTC by Gerben Roest
Modified: 2016-07-15 12:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.5.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerben Roest 2010-09-01 21:42:26 UTC
Version:           1.3.0 (using KDE 4.4.5) 
OS:                Linux

I use DNG Converter to convert Sony ARW files to DNG, but it adds 1 hour to the
image timestamp.

$ exiv2 DSC01647.ARW |grep timestamp
Image timestamp : 2010:08:25 22:16:56

$ exiv2 DSC01647.dng |grep timestamp
Image timestamp : 2010:08:25 23:16:56

Reproducible: Always

Steps to Reproduce:
Inside Digikam or stand-alone, convert a Sony .ARW file. Then check the creation timestamp or do "exiv2 image.ARW |grep timestamp" and then "exiv2 image.dng |grep timestamp". The .dng is one hour newer.

Actual Results:  
Check the creation timestamp or do "exiv2 image.ARW |grep timestamp" and then "exiv2 image.dng |grep timestamp". The .dng is one hour newer.

Expected Results:  
Timestamp should be the same as in the .ARW file.

$ dngconverter -v
Qt: 4.6.3
KDE Development Platform: 4.4.5 (KDE 4.4.5)
DNG Image Converter: 1.3.0

$ uname -a
Linux server 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC
2010 x86_64 GNU/Linux

I use Ubuntu 10.04, using the ppa from Philip Johnsson:

$ sudo apt-cache show digikam
Maintainer: Philip Johnsson 
Architecture: amd64
Version: 2:1.3.0-lucid~ppa1
Comment 1 caulier.gilles 2010-09-02 08:48:24 UTC
It's the same problem with kipi-plugins 1.4.0 ?

Which Exiv2 version you use. I recommend last 0.20.0...

Gilles Caulier
Comment 2 Gerben Roest 2010-09-02 09:15:17 UTC
(In reply to comment #1)
> It's the same problem with kipi-plugins 1.4.0 ?

I Don't know, I use Gnome and it's not easy to recompile. I usually wait until the packagers make it available.

> Which Exiv2 version you use. I recommend last 0.20.0...

exiv2 0.19

But I see it in Digikam's picture browser too (the time difference). Don't know if digikam uses exiv2's libraries though.
Comment 3 caulier.gilles 2010-09-02 09:26:59 UTC
Yes digiKam use Exiv2, through libkexiv2 interface designed for KDE...

Gilles
Comment 4 Gerben Roest 2010-09-02 09:55:31 UTC
On 02-09-10 09:27, Gilles Caulier wrote:
> https://bugs.kde.org/show_bug.cgi?id=249785
> 
> 
> 
> 
> 
> --- Comment #3 from Gilles Caulier <caulier gilles gmail com>  2010-09-02 09:26:59 ---
> Yes digiKam use Exiv2, through libkexiv2 interface designed for KDE...

This evening I'll check in Windows what the exif data says.

Gerben
Comment 5 caulier.gilles 2010-09-02 10:01:08 UTC
No need windows. Compare metadata with Exiv2 and Exiftool command line program, between your original ARW file and the DNG file created.

Gilles Caulier
Comment 6 Gerben Roest 2010-09-02 12:54:25 UTC
> No need windows. Compare metadata with Exiv2 and Exiftool command line program,

gerbenr@gerrit:2010-Nederland$ exiftool DSC01646.ARW |grep Modify
Modify Date                     : 2010:08:25 15:36:37
gerbenr@gerrit:2010-Nederland$ exiftool DSC01646.dng |grep Modify
Modify Date                     : 2010:08:25 16:36:37

1 hour difference here, too.

Gerben
Comment 7 Gerben Roest 2010-09-02 13:00:36 UTC
> No need windows. Compare metadata with Exiv2 and Exiftool command line program,

gerbenr@gerrit:2010-Nederland$ exiftool DSC01646.ARW |grep Date
File Modification Date/Time     : 2010:08:25 15:36:36+02:00
Date/Time Original              : 2010:08:25 15:36:37
Create Date                     : 2010:08:25 15:36:37
Modify Date                     : 2010:08:25 15:36:37

gerbenr@gerrit:2010-Nederland$ exiftool DSC01646.dng |grep Date
File Modification Date/Time     : 2010:09:02 09:22:01+02:00
Modify Date                     : 2010:08:25 16:36:37
Date/Time Digitized             : 2010:08:25 16:36:37+02:00
Date/Time Original              : 2010:08:25 16:36:37
Create Date                     : 2010:08:25 16:36:37

1 hour difference here, too.

Gerben
Comment 8 Jens Mueller 2010-09-13 20:30:02 UTC
SVN commit 1174969 by jmueller:

Use timestamps from libkexiv as Libraw do not support daylight savings time.

BUGS: 249785

 M  +22 -15    dngwriter.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1174969
Comment 9 caulier.gilles 2010-09-26 14:25:57 UTC
Jens, i'm not sure if it's relevant. in all case, take a look for info :

http://dev.exiv2.org/issues/732

Gilles
Comment 10 Jens Mueller 2010-09-26 22:31:53 UTC
Interesting link, indeed. I looked at dcraw/libraw source and found that they do not support daylight savings time correctly with current implementation. But what I see from exiv2 everything seems to be fine for me - but I'll do additional checks.

About kipi-interface: yes that could also be get from interface. Beside from timestamps the more interesting parts are xmp author, keywords and comments as they some raw formats do not support changes here, right?
Comment 11 caulier.gilles 2010-10-28 09:35:10 UTC
Jens, 

Sorry for my late reponse... I'm too busy everywhere (:=)))

With 2.0.0, XMP sidecar support have been added to digiKam. kipi interface from digiKam core export to plugins the XMP sidecar settings used to manage these metadata files. Typically, XMP sidecar are used with read only files to store extra metadata. DNG converter must be able to deal with these files.

Gilles Caulier