From 1aea652fea98df0268161bb84ff2f1dbd976973a Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 18 Apr 2024 16:48:08 +0200 Subject: [PATCH] Add correct DateTime (editing date) to Exif data Currently, RT does not save the editing date (Exif tag DateTime) in the exif data of the exported files, only DateTimeOriginal (the date/time the photo was captured). This patch fixes this. --- rtengine/metadata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/metadata.cc b/rtengine/metadata.cc index 2e75e1f3c..38d115b7e 100644 --- a/rtengine/metadata.cc +++ b/rtengine/metadata.cc @@ -317,7 +317,7 @@ void Exiv2Metadata::saveToImage(const Glib::ustring &path, bool preserve_all_tag std::time_t t = std::time(nullptr); char mbstr[100]; if (std::strftime(mbstr, sizeof(mbstr), "%Y:%m:%d %H:%M:%S", std::localtime(&t))) { - dst->exifData()["Exif.Image.ModifyDate"] = mbstr; + dst->exifData()["Exif.Image.DateTime"] = mbstr; } import_exif_pairs(dst->exifData());