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
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

378 views 16 9
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