ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[DatePicker]: Dual Calendar displays different Year for Buddhist in Month View and Year view

Open AuroArea opened this issue 1 year ago • 4 comments

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

  1. Open the component in https://sap.github.io/ui5-webcomponents/components/DatePicker/#basic-sample

  2. Click "Open in Playground"

  3. in the new playground page, go to "main.js" tab and include the the import - import "@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js";

  4. 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>

  5. 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.

  6. Click on the year 2025, year view opens, the buddhist year is displayed 1 year less i.e. 2567 BE.

  7. It should be the same. ...

Log Output, Stack Trace or Screenshots

Month View Image

Year View

Image

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.

AuroArea avatar Jan 23 '25 03:01 AuroArea

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

nnaydenow avatar Jan 23 '25 08:01 nnaydenow

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

sunil-joseph01 avatar Jan 29 '25 12:01 sunil-joseph01

Hi @sunil-joseph01

We'll expedite and get back to you asap with more info

BR, Vladi

vladitasev avatar Jan 29 '25 14:01 vladitasev

: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:

ui5-webcomponents-bot avatar Feb 03 '25 13:02 ui5-webcomponents-bot