adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
744 stars 752 forks source link

[Page][Data Layer] Creation date is returned in repo:modifyDate of the page #2384

Closed bpauli closed 1 year ago

bpauli commented 1 year ago

Issue Summary:

When using the core component of Adobe Client Data Layer, the creation date is returned to repo:modifyDate of the page.

Steps to reproduce:

  1. Confirm that each date on the WKND page below is as follows.

Page -> /content/wknd/us/en/jcr:content jcr:created -> 2022-11-17T01:23:19.537Z cq:lastModified -> 2022-11-22T05:25:03.412Z

image 2.Access the page with Chrome browser and run the following command from the console

window.adobeDataLayer.getState();

3.No.1 jcr:created is included in repo:modifyDate and cq:lastModified is not reflected.

{ "page-2eee4f8914": { "@type": "wknd/components/page", "repo:modifyDate": "2022-11-17T01:23:19Z", "dc:title": "WKND Adventures and Travel", "dc:description": "WKND is a collective of outdoors, music, crafts, adventure sports, and travel enthusiasts that want to share our experiences, connections, and expertise with the world.", "xdm:template": "/conf/wknd/settings/wcm/templates/landing-page-template", "xdm:language": "en-US", "xdm:tags": [ "Attract" ], "repo:path": "/content/wknd/us/en.html" } } image

*Reproduced with AEM Local SDK and AEM 6.5.15 Load10.

Expected Behavior:

cq:lastModified[2022-11-22T05:25:03.412Z] should be returned

Experienced Behavior:

jcr:created[2022-11-17T01:23:19.537Z] was returned

Environment Details:

Affected AEM release ID: 2022.10.9398 Tested with AEM release ID: 2022.10.9398

bpauli commented 1 year ago

SITES-9662