How to add time stamp after the date on last updated information

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

To add time stamp after the date on last updated information because the time stamp on every page is not granular enough in showing the time. It's just showing the date like the following.

(Auto-migrated image: description temporarily unavailable)

This behavior is controlled in page-metadata.vm file located in <confluence-install>/confluence/decorators/includes/. By default the formatter did not return the time, it will only return the date.

Solution

You need to edit the page-metadata.vm and change the formatter. Here's the brief steps of doing that.

  1. Navigate to <confluence-install>/confluence/decorators/includes/

  2. Open page-metadata.vm with your favorite editor

  3. Find the following line (there are two different parts in the file that contain similar line)

    1 2 3 ... "$action.dateFormatter.format( $page.lastModificationDate )"]) ...
  4. Change the line to the following.

    1 2 3 ... "$action.dateFormatter.formatDateTime( $page.lastModificationDate )"]) ...
  5. Restart Confluence and it will show the exact time, following the User Profile's timezone setting.

    (Auto-migrated image: description temporarily unavailable)
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.