It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hey guys,
in my layout I got the following code:
<div class="page-metadata not-personal">$action.getText("macros.blogpost.by.posted.on", ["#userLink($blog.creator)", $action.dateFormatter.formatDateTime($blog.creationDate)]) - last edited by #userLink($blog.lastModifier) on $action.dateFormatter.formatDateTime($blog.lastModificationDate)</div>
and the output is like
Tim posted on Jun 02, 2014 08:55 - last edited by Tim on Jun 11, 2014 14:05
I want the time-format to be like Tim posted on 02.06.2014 08:55 -last edited by Tim on 11.06.2014 14:05
Is there a specific formatter for this type of display-date?
My second issue is that I want the same format for all my pages, blogposts and comments. It works fine for pages and blogposts but I can't find the right line for time-format in my comment-layout. Can anyone help? :)
Cheers!
Hey Tim,
If this is not for a plugin you are developing, take a look at
https://confluence.atlassian.com/display/DOC/Configuring+Time+and+Date+Formats
If it is for a plugin, use DateTimeFormatter.format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.