Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-3208

Date picker shows weekdays incorrectly

    Details

      Description

      Hi team,

      Product Version
      Liferay 7.1.x

      Reproduction Steps
      1. Setup Liferay DXP 7.1.x
      2. Start creating a new form
      3. Add a Date element on it→Publish
      4. Add a widget page
      5. Add a language selector
      6. Add the new form on it
      7. Click on the element to show the date popup
      8. Assert that the first weekday is Sun
      9. Change the language to Swedish
      10. Click on the element to show the date popup again
      11. Check the day

      Expected Behavior
      The first day is for Monday.

      Actual Behavior
      The first day remained Sunday.

      In other words, the client's problem is that the week is being rendered by the datepicker component starting on Sunday instead of Monday, therefore the combination of days in the calendar is also distributed incorrectly.

      Documentation:

      Alloy UI - https://alloyui.com/api/files/yui3_src_calendar_js_calendar-base.js.html#l40
      YUI - https://clarle.github.io/yui3/yui/docs/api/files/calendar_js_calendar-base.js.html#l40
      Liferay Language Support - https://grow.liferay.com/people/Language+Support
      YUI Internationalization - https://clarle.github.io/yui3/yui/docs/intl/

      Behavior in other portal versions:

      7.2.x - Works as expected. The firstDay is set in a non-existent file in 7.1.x.

      HEAD: 428efd8b20690ec9f2ededd7faf96bbd4cbed8e7

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-frontend-infra Product Team Frontend Infrastructure
              Reporter:
              richard.jeremias Richard Jeremias
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  master
                  3.1.0-deprecated.90