Bug #645 » exiv2-parse-date.patch
src/convert.cpp (working copy) | ||
---|---|---|
809 | 809 |
return; |
810 | 810 |
} |
811 | 811 |
XMP_DateTime datetime; |
812 |
SXMPUtils::ConvertToDate(value, &datetime); |
|
812 |
try { |
|
813 |
SXMPUtils::ConvertToDate(value, &datetime); |
|
814 |
} |
|
815 |
catch (const XMP_Error& e) { |
|
816 |
#ifndef SUPPRESS_WARNINGS |
|
817 |
std::cerr << "Warning: Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n"; |
|
818 |
#endif |
|
819 |
} |
|
813 | 820 |
char buf[30]; |
814 | 821 |
if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") { |
815 | 822 |