5 Replies Latest reply on Aug 14, 2014 9:01 AM by whoiskevin

    Add date to version list

    Yoojay

      In the "Manage Versions" page of a document, I would like the "Changed When" to display the date of the change along with the time since the change. This was posted previously in this discussion but I am not able to get it working:

      Add date to version list


      Manage_versions.jpg

      Can someone clarify if this is the solution and where (what line #) it should go in the "doc-version.ftl" file code?

       

      Thanks for your help!

      John

       

      Aaron Thompson

        • Re: Add date to version list
          whoiskevin

          Looks like line 208 in the doc-version.ftl would do the trick just like before:

           

          Current version:

                                      <td class="jive-table-cell-changed">

                                          ${StringUtils.getTimeFromLong(version.modificationDate.time?long)}

                                      </td>

           

          So something like this should work:

          <td class="jive-table-cell-changed">

               ${StringUtils.getTimeFromLong(version.modificationDate.time?long)}

             ${version.modificationDate?datetime?string.medium_short}

          </td>