Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-50622

Time.getRelativeTimeDescription uses hard-coded formatter to provide Date string

    Details

      Description

      Description:

      In this time Time.getRelativeTimeDescription method contains a hard-coded formatter. This can give back a correct US formatted Date but if we change user's language to Deutsch (Deutschland) then we will get an incorrect Date format.

      1) Login into a vanilla portal with Admin user test and create another user member of the site, e.g. user1
      2) Go to the Welcome page and drag a Notifications and a Blogs portlet on it
      3) Navigate to Admin>Site Administration>Configuration>Workflow configuration. Configure the Blogs Entry to Single Approver (Version1)
      4) Logout the test user and login with the user1
      5) On the top-right corner, click on user1 dropdown menu and select My Account>Display Settings>Language>Deutsch (Deutschland). Save and navigate to the welcome page
      6) In the Blogs portlet, click on Blogeintrag hinzuf├╝gen. Create a test blog entry and select Zur Publikation einsenden
      7) Observe the notification in the Notifications portlet:

      Displayed:
      user1 sent you a Blogs Entry for review in the workflow. Mittwoch, September 24, 2014

      Expected:
      user1 sent you a Blogs Entry for review in the workflow. Mittwoch 24. September 2014,

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lu.liu Lu Liu
              Reporter:
              zsolt.szabo Zsolt Szabo (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 5 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M2