XnViewMP shows broken data for XMP dates

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

jkm
Posts: 402
Joined: Sat May 11, 2024 12:43 am

XnViewMP shows broken data for XMP dates

Post by jkm »

XnViewMP improperly handle XMP data in sidecar files for the following fields:
xmp:CreateDate
xmp:ModifyDate
photoshop:DateCreated

Steps to reproduce:

1. Turn on sidecar files
2. Use any jpeg image
3. Edit XMP
4. In Date created field insert: {Creation Date}
5. Click Write

Examine the xmp sidecar file. You will see lines like this:
<xmp:CreateDate>2026-03-19T02:37:55</xmp:CreateDate>
<xmp:ModifyDate>2026-03-19T02:37:55</xmp:ModifyDate>
<photoshop:DateCreated>2026-03-19T02:37:55</photoshop:DateCreated>

The app has inserted a T in between the date and time.
This is according to specification. But when the data is displayed in the application, it should look like this, without the T:
2026-03-19 02:37:55

If these fields are used anywhere in the app, using {xmp:createdate} for example the T appears.

It also shows incorrectly in the XMP tab of the Info Panel.

When displayed in Labels, Info Overlay, or Details view, you see this:
native XMP:ModifyDate shows 2026-01-29T17:16:41 (see there is a T between the date and time)
native XMP:CreateDate shows 2026-01-29T17:16:41.91 (same)

{exiftool:xmp:createdate} shows correctly as 2026:01:29 17:16:41.91
{exiftool:xmp:modifydate} shows correctly as 2026:01:29 17:16:41

Note: On the Description tab of the Edit XMP dialog, the cr date and mod dates are displayed correctly, without the T.
If you edit the fields manually in the XMP file, then Update Catalog from Files, the T is then not displayed when {xmp:createdate} is used.

No example file is necessary. The app generates the bad data itself.

:bug: UPDATE: The data in the XMP file is written to the specification, but not displayed properly in the application.
Last edited by jkm on Thu Mar 19, 2026 8:40 am, edited 2 times in total.
User avatar
user0
XnThusiast
Posts: 2843
Joined: Sat May 09, 2015 9:37 am

Re: XnViewMP writes broken data for XMP dates

Post by user0 »

jkm
Posts: 402
Joined: Sat May 11, 2024 12:43 am

Re: XnViewMP writes broken data for XMP dates

Post by jkm »

Thanks for catching that.

It should not be displayed with a T in Details View, Info Overlay, and Labels. It's not readable and inconsistent with the XMP dialog, as noted above.