-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: 3.1.0-deprecated.18
-
Fix Version/s: master, 3.1.0-deprecated.90
-
Component/s: Calendar (deprecated), DatePicker
-
Environment:Browsers
-
Liferay Contributor's Agreement:Accept
-
Git Pull Request:
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
- fixes
-
LPS-145205 Date picker shows incorrect date and weekday for Swedish locale
- Closed
- mentioned in
-
Page Loading...