|
|
@ -859,17 +859,6 @@ namespace Exiv2 {
|
|
|
|
XMP_DateTime datetime;
|
|
|
|
XMP_DateTime datetime;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
SXMPUtils::ConvertToDate(value, &datetime);
|
|
|
|
SXMPUtils::ConvertToDate(value, &datetime);
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef SUPPRESS_WARNINGS
|
|
|
|
|
|
|
|
catch (const XMP_Error& e) {
|
|
|
|
|
|
|
|
EXV_WARNING << "Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
catch (const XMP_Error&) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SUPPRESS_WARNINGS
|
|
|
|
|
|
|
|
char buf[30];
|
|
|
|
char buf[30];
|
|
|
|
if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
|
|
|
|
if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
|
|
|
|
|
|
|
|
|
|
|
@ -932,6 +921,17 @@ namespace Exiv2 {
|
|
|
|
buf[sizeof(buf) - 1] = 0;
|
|
|
|
buf[sizeof(buf) - 1] = 0;
|
|
|
|
(*exifData_)["Exif.GPSInfo.GPSDateStamp"] = buf;
|
|
|
|
(*exifData_)["Exif.GPSInfo.GPSDateStamp"] = buf;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifndef SUPPRESS_WARNINGS
|
|
|
|
|
|
|
|
catch (const XMP_Error& e) {
|
|
|
|
|
|
|
|
EXV_WARNING << "Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
catch (const XMP_Error&) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SUPPRESS_WARNINGS
|
|
|
|
|
|
|
|
|
|
|
|
if (erase_) xmpData_->erase(pos);
|
|
|
|
if (erase_) xmpData_->erase(pos);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|