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

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kdeplasma-addons/-/commi |ma/kdeplasma-addons/-/commi
                   |t/3b380dd8c1881fde131675ce8 |t/c107b2127a11aa66177dabd2b
                   |52bd93384e5e71b             |e7382056e721c6f

--- Comment #6 from Nate Graham <[email protected]> ---
Git commit c107b2127a11aa66177dabd2be7382056e721c6f by Nate Graham.
Committed on 29/06/2026 at 16:24.
Pushed by ngraham into branch 'Plasma/6.7'.

[Vietnamese Lunar Calendar] Fix midnight JDE rounding in getLocalDayIndex

The `+ 0.5` offset intended to shift the Julian Date reference point from noon
to local midnight (UTC+7) was placed outside `std::floor()`, making it a no-op
by
the `qint64` cast. This caused `getLocalDayIndex` to return the previous day
for
any astronomical event occurring between local midnight and noon, shifting the
lunar day count one too high.

Quite frankly, it is embarrassing that I missed this.


(cherry picked from commit 3b380dd8c1881fde131675ce852bd93384e5e71b)

Co-authored-by: Trần Nam Tuấn <[email protected]>

M  +1    -1   
plasmacalendarplugins/alternatecalendar/provider/vietnamesecalendar.cpp

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/c107b2127a11aa66177dabd2be7382056e721c6f

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

Reply via email to