PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-33451

Date and time formatting rules should be customizable via properties

    Details

    • Type: Feature Request Feature Request
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.1.20 EE GA2, --Sprint 11/12
    • Fix Version/s: None
    • Component/s: WCM, WCM > Localization
    • Labels:
      None
    • Similar Issues:
      Show 5 results 

      Description

      Date formatting rules should be customizable via properties

      Currently the date and time formatting rules are hardcoded and there is no way to define the preferred format via properties.

      For example in a Lithuanian translation given the following language property:
      voting-is-disabled-because-this-poll-expired-on-x=Apklausos galiojimas baigėsi

      {0}

      .

      This is displayed as:
      "Apklausos galiojimas baigėsi 13.2.10 23.59."

      If someone would like to apply different formatting like the example below, then it can be archived only with customizing the code:
      "Apklausos galiojimas baigėsi 2013-02-10 23:59."

      A new feature to define formatting rules via property configuration or in the translation string would be useful.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            SE Support
            Reporter:
            Istvan Sajtos
            Recent user:
            Randy Zhu
            Participants of an Issue:
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              2 years, 2 days ago

              Development

                Structure Helper Panel