How can we edit confluence pages to show the absolute date and time, instead of showing "edited just a minute ago"?
Hi Martin,
If you're using an older version of Confluence, you may refer to the following KB to learn more :
Else, I've found two approaches to achieve absolute date and time format. Due to some changes made in the newer version of Confluence, the modification mentioned in the knowledge base article previously is not applicable anymore, partly due to this, these approaches will come with its compromises. So you may consider which approach you're going for.
#skiplink("page-metadata", $i18n.getText("assistive.skiplink.to.metadata.start"), $i18n.getText("assistive.skiplink.to.metadata.end")) <div class="page-metadata"> <ul> <li class="page-metadata-modification-info"> #pageByline($page $action.dateFormatter false) </li> <li> ($dateFormatter.formatTime($page.lastModificationDate)) </li> </ul> </div> #end
As a result, you would be able to see the last modified time, but the "ago" still remain. The "ago" is a hyperlink that will lead you to the {{Page History}} page.
Screen Shot 2016-09-02 at 11.21.58 PM.png
Approach number two
#skiplink("page-metadata", $i18n.getText("assistive.skiplink.to.metadata.start"), $i18n.getText("assistive.skiplink.to.metadata.end")) <div class="page-metadata"> <ul> <li class="page-metadata-modification-info"> #pageByline($page $action.dateFormatter true) </li> <li> ($dateFormatter.formatTime($page.lastModificationDate)) </li> </ul> </div> #end
With this, you'll be able to achieve the absolute date and time format, without having the "ago" anymore. However, the {{Page History}} hyperlink is gone whereby the date was unclickable. To access {{Page History}}, you would have to click on the option button located at the top right-hand corner of a page, then click on {{Page History}}.
Screen Shot 2016-09-02 at 11.21.27 PM.png
I hope this will help :)
Best Regards,
Jonathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.