Why I can't had the publish date of a page in stage (QA) environment?
Hello, what happens is that I have a component that has its own java sling model, what I need is to get the date of publication of the page (that is, the date on which you create the page and click the publish button).
I already have the code and the logic ready.
I have tested this code in localhost and in dev environment, and in both it works perfectly, but when I deploy it to stage (QA) it doesn't work, it doesn't bring me the value of the publish date.
This is the code I use:
// Get the publish date of the page
// If fails, return the created page date (the date of the page when was created even if is published or not)