Easy way to add exact 'time stamp' to Status Update?

Right now, Confluence uses a twitter-like time stamp for the Status Updates, things like:

  • 29 minutes ago
  • about two hours ago
  • yesterday at 5pm
  • October 14

Would like to add the actual time stamp to that so it would be like

  • 29 minutes ago (1:45pm, Oct 16, 2012)

or something like that. Looks like the dbase has the time stamp, just need to find the code. Anyone have any ideas?

1 answer

1 accepted

1 vote
Joseph Clark Atlassian Team Oct 17, 2011

If you are comfortable customising the source code directly, the class you want to edit is com.atlassian.confluence.core.datetime.FriendlyDateFormatter.

thanks Joseph. Will give it a shot and report back :)

Hmm, which file is it? Thanks!

root@host [/var/tomcat]# find . -exec grep "com.atlassian.confluence.core.dateti 
me.FriendlyDateFormatter" '{}' \; -print

Binary file ./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-rest-plugin-4.0_1316137166000.jar matches

Binary file ./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-space-directory-4.0_1316137282000.jar matches

root@host [/var/tomcat]#

found it, duh... I'm a php guy, this java stuff is new to me.

\Confluence 4\confluence-4.0\confluence\WEB-INF\lib\confluence-4.0\com\atlassian\confluence\core\datetime

working on best way for edits now. more learning curve.

Joseph Clark Atlassian Team Oct 19, 2011

Awesome, glad you found it (sorry I didn't reply straight away - was out of the office).

Just give a holler if you get stuck on anything!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,856 views 27 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you