Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Simple macro to display last modified date and time

mwthomson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 18, 2020

Confluence macro newbie here...

I have a very simple macro to display the page's last modified date and time. It works, but it always displays the server time rather than the user's local time. I can't find documentation on how to display in the user's local time zone. Any help? I'm running this on Confluence Server v7.2.2. 

Code:

#set ( $dateInfo=$action.dateFormatter.formatGivenString("yyyy-MM-dd HH:mm:ss Z", $content.lastModificationDate) )
Last Modified: $dateInfo

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events