Customize the time format of the activation date for Manage Publication

The article explains how to customize the time format of the activation date for Manage Publication in the Adobe Experience Manager. Follow the steps outlined here.

Description description

Environment

Adobe Experience Manager (AEM) 6.5

Issue/Symptoms

This article explains how to customize the time format of the activation date for Manage Publication.

Resolution resolution

Create an i18n dictionary for the target language. The following steps customize the time format for English from 12-hour to 24-hour.

Step 1. Build a custom time format in Moment.js syntax (https://momentjs.com/docs/#/i18n/)

24-hour format: "2023/04/11 14:24" > "YYYY/MM/DD HH:mm"

Step 2. Create dictionary data with CRXDE Lite

  • Create an i18n folder under your project (http://< host> :< port> /apps/wknd/i18n)

  • Create a file en.json under the i18n folder (http://< host> :< port> /apps/wknd/i18n/en.json)

  • Add the following properties to the file node:

    • Name = jcr:mixinTypes, Type = Name[ ] , Value = mix:language
    • Name = jcr:language, Type = String, Value = en
  • File content: { "D MMMM YYYY hh:mm a" : "YYYY/MM/DD HH:mm" }

Step 3. Access the Manage Publication screen to check the change

The new time format may be reflected after some time due to the browser cache.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f