Comment 14 for bug 49906

Revision history for this message
Pierre Frenkiel (pierre-frenkiel) wrote :

I arrived on this bug report via google, having the same problem with gphoto2 and my camera Canon 20d.
I found a woraround by applying the following script on all files after their download with gphoto2:

#!/bin/bash
F=$1
TT=`exif $F | grep 'Date and Time '|cut -d \| -f 2 | sed "s/:/ /g"`
[[ -z $TT ]] && exit 1
set $TT
print ..$TT..
touch -t $1$2$3$4$5.$6 $F

(exif may be installed with "aptitude install exif)
Nervertheless, I can't agree with the assertion that "the time stamp of the jpeg file is irrelevant"
It's usfull for example with "ls -t". And this feature is actually a bug introduced at least in the Ubuntu version,
as it was not present the Fedora Core 5 version I used before.