#683: Fixed -r conversions for weekday and day of year.
This commit is contained in:
parent
ade0b51b79
commit
f03af22ccd
@ -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
|
||||
|
||||
|
||||
@ -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.
Loading…
Reference in New Issue
Block a user