Details

    • Branch Version/s:
      7.0.x
    • Backported to Branch:
      Committed
    • Story Points:
      1
    • Fix Priority:
      3

      Description

      Steps to reproduce:

      1. Start the portal with properties:

      locales.enabled=fr_FR,en_US
      locales=fr_FR,en_US
      company.default.locale=fr_FR
      company.default.time.zone=Europe/Paris

      Or just start with default properties and once logged in, change your user language to French, in My Account or with the Language Selector portlet.

      2. Place a Calendar portlet on a page and switch to Day view (Jour).

      In the header, you can see the date appearing as (see attached screenshot):

      Mercredi, Janvier 11, 201

      But the date format usually used in France should look like:

      Mercredi 11 Janvier 2017

      This Wikipedia article (https://en.wikipedia.org/wiki/Date_and_time_notation_in_France) seems to confirm this claim.

        Activity

        Hide
        istvan.dezsi Istvan Dezsi added a comment -

        The format is defined in the Alloy UI library.

        aui-scheduler-view-day.js
                /**
                 * Contains the function that formats the navigation date.
                 *
                 * @attribute navigationDateFormatter
                 * @type {Function}
                 */
                navigationDateFormatter: {
                    value: function(date) {
                        var instance = this;
                        var scheduler = instance.get('scheduler');
        
                        return A.DataType.Date.format(
                            date, {
                                format: '%A, %B %d, %Y',
                                locale: scheduler.get('locale')
                            }
                        );
                    },
                    validator: isFunction
                },
        

        There, the format '%A, %B %d, %Y' is hard-coded.
        This may not conform with date formatting rules in various languages, like French.

        Show
        istvan.dezsi Istvan Dezsi added a comment - The format is defined in the Alloy UI library. aui-scheduler-view-day.js /** * Contains the function that formats the navigation date. * * @attribute navigationDateFormatter * @type {Function} */ navigationDateFormatter: { value: function(date) { var instance = this ; var scheduler = instance.get('scheduler'); return A.DataType.Date.format( date, { format: '%A, %B %d, %Y', locale: scheduler.get('locale') } ); }, validator: isFunction }, There, the format '%A, %B %d, %Y' is hard-coded. This may not conform with date formatting rules in various languages, like French.
        Hide
        adam.brandizzi Adam Brandizzi added a comment -

        Just started reviewing brandizzi/liferay-portal#383.


        Sent from GH

        Show
        adam.brandizzi Adam Brandizzi added a comment - Just started reviewing brandizzi/liferay-portal#383 . Sent from GH
        Hide
        adam.brandizzi Adam Brandizzi added a comment -

        Pull request submitted to natocesarrego/liferay-portal#70.


        Sent from GH

        Show
        adam.brandizzi Adam Brandizzi added a comment - Pull request submitted to natocesarrego/liferay-portal#70 . Sent from GH
        Hide
        adam.brandizzi Adam Brandizzi added a comment -

        Just started reviewing brandizzi/liferay-portal#386.


        Sent from GH

        Show
        adam.brandizzi Adam Brandizzi added a comment - Just started reviewing brandizzi/liferay-portal#386 . Sent from GH
        Hide
        adam.brandizzi Adam Brandizzi added a comment -

        Pull request submitted to brianchandotcom/liferay-portal#47242.


        Sent from GH

        Show
        adam.brandizzi Adam Brandizzi added a comment - Pull request submitted to brianchandotcom/liferay-portal#47242 . Sent from GH
        Hide
        adam.brandizzi Adam Brandizzi added a comment -

        Pull request submitted to vicnate5/liferay-portal#752.


        Sent from GH

        Show
        adam.brandizzi Adam Brandizzi added a comment - Pull request submitted to vicnate5/liferay-portal#752 . Sent from GH
        Hide
        melody.wu Melody Wu added a comment -

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 8.0.32 + MySQL 5.6. Portal master GIT ID: 237dd5f972ee9d7b98935c3357e149ce0328d00e.

        Right date format in Calendar day view.

        Show
        melody.wu Melody Wu added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 8.0.32 + MySQL 5.6. Portal master GIT ID: 237dd5f972ee9d7b98935c3357e149ce0328d00e. Right date format in Calendar day view.
        Hide
        melody.wu Melody Wu added a comment -

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 8.0.32 + MySQL 5.6. Portal ee-7.0.x GIT ID: 606d9d902aef50ca425f401e51ef30ff8d02e70e.

        Right date format in Calendar day view.

        Show
        melody.wu Melody Wu added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 8.0.32 + MySQL 5.6. Portal ee-7.0.x GIT ID: 606d9d902aef50ca425f401e51ef30ff8d02e70e. Right date format in Calendar day view.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              7 weeks, 2 days ago

              Development

                Subcomponents