How to customize the time format of the activation date for Manage Publication?

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 the your project (https://experienceleague.adobe.com/apps/wknd/i18n?lang=en)

  • Create a file en.json under the i18n folder (https://experienceleague.adobe.com/apps/wknd/i18n/en.json?lang=en)

  • 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 a period of time due to the browser cache.

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