#683: Fixed -r conversions for weekday and day of year.

This commit is contained in:
Andreas Huggel 2010-02-17 13:42:15 +00:00
parent ade0b51b79
commit f03af22ccd
3 changed files with 10 additions and 0 deletions

View File

@ -1848,6 +1848,10 @@ namespace {
if (!Util::strtol(timeStr.substr(17,2).c_str(), tmp)) return 10;
tm->tm_sec = tmp;
// Conversions to set remaining fields of the tm structure
time_t time = timegm(tm);
if (time == (time_t)-1 || gmtime_r(&time, tm) == 0) return 11;
return 0;
} // str2Tm

View File

@ -142,6 +142,12 @@ $exiv2 -v -M'set Exif.Image.Make NIKON' \
$exiv2 -pa -u -b $filename
num=683
filename=exiv2-bug$num.jpg
cp -f ../data/exiv2-nikon-d70.jpg $filename
echo '------>' Bug $num '<-------' >&2
$exiv2 -v -f -r %Y-%m-%d-%a-%j $filename
) > $results 2>&1
# ----------------------------------------------------------------------

Binary file not shown.