Details

    • Type: Bug
    • Status: In Review
    • Resolution: Unresolved
    • Affects Version/s: 6.2.10 EE GA1, 6.2.X EE, 7.0.X EE, Master
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
    • 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

          People

          • Assignee:
            adam.brandizzi Adam Brandizzi
            Reporter:
            istvan.dezsi Istvan Dezsi
            Recent user:
            Adam Brandizzi
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              4 days ago

              Development

                Subcomponents