Add correct DateTime to Exif date
This commit is contained in:
parent
1715334960
commit
b7749c0719
@ -315,7 +315,7 @@ void Exiv2Metadata::saveToImage(const Glib::ustring &path, bool preserve_all_tag
|
|||||||
dst->exifData()["Exif.Image.Software"] = "RawTherapee " RTVERSION;
|
dst->exifData()["Exif.Image.Software"] = "RawTherapee " RTVERSION;
|
||||||
|
|
||||||
std::time_t t = std::time(nullptr);
|
std::time_t t = std::time(nullptr);
|
||||||
char mbstr[100];
|
char mbstr[20];
|
||||||
if (std::strftime(mbstr, sizeof(mbstr), "%Y:%m:%d %H:%M:%S", std::localtime(&t))) {
|
if (std::strftime(mbstr, sizeof(mbstr), "%Y:%m:%d %H:%M:%S", std::localtime(&t))) {
|
||||||
dst->exifData()["Exif.Image.DateTime"] = mbstr;
|
dst->exifData()["Exif.Image.DateTime"] = mbstr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user