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

This widget could not be displayed.
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 Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

384 views 3 6
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