Bitbucket commits to show full date in the UI instead of Yesterday / Today / an hour ago / 2 days ago / 1 week ago" etc

 

Need to see full date(timestamp) after each commit in  Bitbucket

Currently it is showing as "Yesterday / Today / an hour ago / 2 days ago / 1 week ago" etc etc which is not so readable for the Development team... Hover over to see full date is too time consuming... 

 

 

3 answers

A small extension either native Bitbucket or browser extension should be able to solve your problem. It should iterate over the first couple of rows of the #commits-table and reformat the date value stored in the datetime attribute of the time tags of te ones that need reformatting.

Option 1:  Go vote for BSERV-4477 and wait. cheeky

Option 2:  Install the paid add-on, Bit-Booster for Bitbucket Server.

After installing the add-on, go to its config screen (Manage Add-Ons --> Bit-Booster for Bitbucket Server --> Configure) and select one of the two "No" choices for the "Relative Time" config option:

relative.png

It uses your browser's locale to format the time, and so if you're in Europe it won't display "AM" or "PM" and instead will use 24hrs time.

Once you've installed and configured the add-on, navigate to Bitbucket Server's "commits" page and enjoy. Eventually I plan to adjust timestamps on all the screens in Bitbucket that have timestamps, but for now it's just the "commits" page.

A full screenshot of all config options available if you install my add-on  (Bit-Booster for Bitbucket Server) are available below in the comment thread on this answer.

Note:  this feature remains fully functional even if you let the Bit-Booster add-on license expire.

Enjoy!

Nice plugin, but functionality you implementing is something we already have... Except for the date format... Ill see if i can get something together on my own or follow ℳichiel ℛoo suggestions...

 

Thanks anyway!!!!

Are you sure you already have my functionality?  The alternatives all have problems with orphan branches and octopus merges, and no-one else does the condensed git graph.   No-one else let's you filter for specific branches in the all-branches view; no-one else shows reverts clearly, and no-one else blocks foxtrot merges.

Also, even if the license expires, my add-on will still adjust the timestamps, and will still embed a graph in commits page for you.   (My add-on only complains about expired licenses on its all-branches-graph page).

My add-on also let's you rebase, squash, or amend pull-requests right in the web ui, including when the pull-request involves forks.

Okay, I uploaded a version of my add-on (Bit-Booster for Bitbucket Server), which includes functionality for disabling relative date stamps.  Here's a screenshot of the full config screen:

 

settings.png

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

708 views 0 4
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot