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
Accepted answer
Joe 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
./confluence/webapps/confluence/plugins-osgi-cache/transformed-plugins/confluence-rest-plugin-4.0_1316137166000.jar

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

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.

Joe 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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,088 views 17 14
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