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

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@davidedmundson.co.uk
             Status|REPORTED                    |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO

--- Comment #1 from David Edmundson <k...@davidedmundson.co.uk> ---
I do have a theory

We call dateTimeChanged once per day

It checks if the formatted date matches the last date.
If not it goes into "timeFormatCorrection" which then updates the labels

But the value it's using for the "only do this once per day" is potentially in
a different timezone to the one used by formatting
            const currentDate =
Qt.formatDateTime(dataSource.data["Local"]["DateTime"], "yyyy-MM-dd");
            if (main.lastDate !== currentDate) {
                doCorrections = true;
                main.lastDate = currentDate
            }


should be the current one right? 

Which means if my local is EU and I show UK time. it'd only update once per EU
date change to the current UK date time, and be one day off.

Can you attach your ~/.config/plasma-org.kde.plasma.desktop-appletsrc please

-----

Also this code should be rewritten declaratively so we don't have this sort of
problem!

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

Reply via email to