Forums

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

How to disable relative dates in Confluence comments

Jason Reid
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!
April 7, 2019

2 answers

3 votes
Jason Reid
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!
April 10, 2019

For anybody else who finds this:

I achieved the desired result by change the Comment Layout:

#macro (displayCommentActions $commentId $commentActionSection $webInterfaceContext)
#set ($items=$webInterfaceManager.getDisplayableItems("system.comment.action/$commentActionSection", $webInterfaceContext))
#if ($items)
<ul class="comment-actions-$commentActionSection">
#foreach ($item in $items)
## provide first class name for IE6 cause first-child selector doesn't work
#if ($velocityCount==1) #set ($className="first") #else #set ($className="") #end
#if ($item.styleClass) #set($className = "$className $item.styleClass") #end
## don't introduce a line break between the <li> and <a> otherwise this will introduce an unwanted spacing when this markup is rendered. See http://css-tricks.com/fighting-the-space-between-inline-block-elements/
<li class="$className"><a #if ($item.tooltip)title="$item.tooltip.getDisplayableLabel($req, $webInterfaceContext)"#end href="$item.link.getDisplayableUrl($req, $webInterfaceContext)"
#if ($item.link.id) id="${item.link.id}-$commentId" #end
><span>$item.label.getDisplayableLabel($req, $webInterfaceContext) - #if ($item.tooltip)$item.tooltip.getDisplayableLabel($req, $webInterfaceContext)#end</span></a></li>
#end
</ul>
#end
#end

Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2019

Hey there Jason!

This is some serious advice you got there. Thanks for coming back and sharing how to achieve this.

Your knowledge can be quite useful for others as well!

Like Jovanka Pesika likes this
0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 10, 2019

Hello there!

Jason, currently this is not possible in Confluence.

We have feature requests for both Cloud and Server. You can check them here:

CONFSERVER-45044 | As an Administrator I want to configure Confluence to use only absolute dates

CONFCLOUD-45044 | As an Administrator I want to configure Confluence to use only absolute dates

On CONFCLOUD-45044 you can still vote and watch in case you are on Confluence cloud. Voting will increase the the visibility of the request and watching will keep you up to date!

Let us know!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events