libgimpbase: fix #14731 incorrect day/month separators in XMP metadata

In 6b10cce6 I introduced setting created date/time metadata for new
images. However, I made a mistake there by using : instead of - between
year, month and day for the XMP metadata tags.

This commit fixes that.

(cherry picked from commit f02910d00f)
This commit is contained in:
Jacob Boerema 2025-08-22 12:31:48 -04:00 committed by Jehan
parent 4256945b48
commit c52b339d93

View file

@ -1755,7 +1755,7 @@ gimp_metadata_set_creation_date (GimpMetadata *metadata,
/* XMP: Xmp.photoshop.DateCreated = date when the original image was
* taken, this can be before Xmp.xmp.CreateDate. */
datetime_buf = g_date_time_format (datetime, "%Y:%m:%dT%T\%:z");
datetime_buf = g_date_time_format (datetime, "%Y-%m-%dT%T\%:z");
gexiv2_metadata_try_set_tag_string (g2metadata,
"Xmp.xmp.CreateDate",