https://bugs.kde.org/show_bug.cgi?id=521959

            Bug ID: 521959
           Summary: Vietnamese lunar calendar shows wrong date start from
                    2026-03-18
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Digital Clock widget
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

The Vietnamese lunar calendar added in Plasma 6.7 appears to be inconsistent
with the reference algorithm/source used by the original merge request.

The feature was added in kdeplasma-addons MR !1015:
https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/1015

That MR says the algorithm is based on Hồ Ngọc Đức's work and references:
https://www.xemamlich.uhm.vn/calrules.html

For Gregorian date 18/03/2026, KDE Plasma shows the Vietnamese lunar date as
1/2. However, according to xemamlich.uhm.vn and the referenced algorithm, the
correct Vietnamese lunar date should be 30/1.

This looks like an off-by-one error around the new moon / lunar month boundary.


STEPS TO REPRODUCE
1. Use KDE Plasma 6.7 with kdeplasma-addons installed.
2. Add or configure the Digital Clock widget.
3. Enable the Vietnamese lunar calendar as the alternate calendar.
4. Open the calendar popup.
5. Navigate to March 2026.
6. Check the date 18 March 2026.

OBSERVED RESULT
KDE shows 18/03/2026 as Vietnamese lunar date 1/2.

EXPECTED RESULT
KDE should show 18/03/2026 as Vietnamese lunar date 30/1.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20260618
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to