[DatePicker]: Dual Calendar displays different Year for Buddhist in Month View and Year view
Bug Description
When Gregorian is the primary calendar and Buddhist is secondary calendar, in the month view, below 2025 the buddhist year is mentioned as 2568 BE. But we click the year, we see the year view, in which the buddhist year under same 2025, is displayed as 2567 BE, a year less. Expectation they should be same.
Affected Component
DatePicker
Expected Behaviour
Buddhist year in Month view should be same as in Year view of the calendar.
Isolated Example
No response
Steps to Reproduce
-
Open the component in https://sap.github.io/ui5-webcomponents/components/DatePicker/#basic-sample
-
Click "Open in Playground"
-
in the new playground page, go to "main.js" tab and include the the import -
import "@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js"; -
Go to index.html tab of same playground page, and update the component to add the attribute
secondary-calendar-type="Buddhist"<ui5-date-picker secondary-calendar-type="Buddhist"> </ui5-date-picker> -
Open the calendar on the right hand side, the month view opens. See the Buddhist year below year 2025. The buddhist year is 2568 BE.
-
Click on the year 2025, year view opens, the buddhist year is displayed 1 year less i.e. 2567 BE.
-
It should be the same. ...
Log Output, Stack Trace or Screenshots
Month View
Year View
Priority
Medium
UI5 Web Components Version
2.6.2
Browser
Chrome
Operating System
Windows 11
Additional Context
No response
Organization
SAP Successfactors
Declaration
- [x] I’m not disclosing any internal or sensitive information.
Hello @SAP/ui5-webcomponents-topic-b,
The issue is reproducible and can be confirmed using the steps provided.
I’ve included a link where you can test the issue: Test Link
Hi @nnaydenow, @Lukas742
Please expedite this issue. this issue impacts SuccessFactors next product release. We would request to have it fixed and released before Feb 21st, for us to adopt and have it tested before production release.
Thanks Sunil
Hi @sunil-joseph01
We'll expedite and get back to you asap with more info
BR, Vladi
:tada: This issue has been resolved in version v2.7.0 :tada:
The release is available on v2.7.0
Your semantic-release bot :package::rocket: