[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #44 from kwi...@gmail.com ---
(In reply to Dan Dascalescu from comment #43)
> Glad to see a fix. Until it rolls out so I can test, I'd like to share that
> actually I'm still experiencing Night Color not changing even in the middle
> of the day (~3pm now), with "Set date and time automatically" checked. I've
> just checked and unchecked it, and Night Color still remained on.
> 
> Operating System: Fedora Linux 38
> KDE Plasma Version: 5.27.8
> KDE Frameworks Version: 5.110.0
> Qt Version: 5.15.10
> Kernel Version: 6.5.6-200.fc38.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 20 × 12th Gen Intel® Core™ i7-12700H
> Product Name: TUXEDO InfinityBook Pro Gen7 (MK1)

Looks like it's fixed:
https://bodhi.fedoraproject.org/updates/FEDORA-2023-78a7d98ec3
mentions upstream patch #2250757
which is https://bugzilla.redhat.com/show_bug.cgi?id=2250757

(F39 has it backported into 5.27.9.1-3, too, see
https://bodhi.fedoraproject.org/updates/FEDORA-2023-059dfcf358)

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-30 Thread Dan Dascalescu
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #43 from Dan Dascalescu  ---
Glad to see a fix. Until it rolls out so I can test, I'd like to share that
actually I'm still experiencing Night Color not changing even in the middle of
the day (~3pm now), with "Set date and time automatically" checked. I've just
checked and unchecked it, and Night Color still remained on.

Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.6-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Product Name: TUXEDO InfinityBook Pro Gen7 (MK1)

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-15 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=469730

Nate Graham  changed:

   What|Removed |Added

 CC||m.scha...@outlook.com

--- Comment #42 from Nate Graham  ---
*** Bug 477057 has been marked as a duplicate of this bug. ***

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-10 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=469730

Nate Graham  changed:

   What|Removed |Added

   Priority|NOR |HI

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-06 Thread Ismael Asensio
https://bugs.kde.org/show_bug.cgi?id=469730

Ismael Asensio  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
   |t/cb2b0e9c036d844d87fd104a3 |t/b8544fc070e88614feb9c198f
   |ae031b59243eaa5 |6ea910c91f3c5d5

--- Comment #41 from Ismael Asensio  ---
Git commit b8544fc070e88614feb9c198f6ea910c91f3c5d5 by Ismael Asensio.
Committed on 06/11/2023 at 20:13.
Pushed by iasensio into branch 'Plasma/5.27'.

kcms/nightcolor: Fix nightcolor with automatic location

As it turns out that the UI never send the geo-location to the
backend so backend always fallbacks to (0, 0) lat and lon
coordinates unless manually changed by `qdbus` commad.. 
FIXED-IN: 5.27.10


(cherry picked from commit cb2b0e9c036d844d87fd104a3ae031b59243eaa5)

M  +15   -0kcms/nightcolor/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/b8544fc070e88614feb9c198f6ea910c91f3c5d5

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-06 Thread Ismael Asensio
https://bugs.kde.org/show_bug.cgi?id=469730

Ismael Asensio  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/plas
   ||ma/plasma-workspace/-/commi
   ||t/cb2b0e9c036d844d87fd104a3
   ||ae031b59243eaa5
   Version Fixed In||5.27.10
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #40 from Ismael Asensio  ---
Git commit cb2b0e9c036d844d87fd104a3ae031b59243eaa5 by Ismael Asensio, on
behalf of Sanjay Swain.
Committed on 06/11/2023 at 20:03.
Pushed by iasensio into branch 'master'.

kcms/nightcolor: Fix nightcolor with automatic location

As it turns out that the UI never send the geo-location to the backend so
backend always fallbacks to (0, 0) lat and lon coordinates unless manually
changed by `qdbus` commad.. I have tested the changes and it works as it
should.
FIXED-IN: 5.27.10

M  +15   -0kcms/nightcolor/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/cb2b0e9c036d844d87fd104a3ae031b59243eaa5

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-05 Thread Ismael Asensio
https://bugs.kde.org/show_bug.cgi?id=469730

Ismael Asensio  changed:

   What|Removed |Added

 CC||wud...@hotmail.com

--- Comment #39 from Ismael Asensio  ---
*** Bug 471238 has been marked as a duplicate of this bug. ***

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-05 Thread Ismael Asensio
https://bugs.kde.org/show_bug.cgi?id=469730

Ismael Asensio  changed:

   What|Removed |Added

 CC||jvanh1...@gmail.com

--- Comment #38 from Ismael Asensio  ---
*** Bug 471639 has been marked as a duplicate of this bug. ***

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-05 Thread Ismael Asensio
https://bugs.kde.org/show_bug.cgi?id=469730

Ismael Asensio  changed:

   What|Removed |Added

 CC||qwe2...@yahoo.com

--- Comment #37 from Ismael Asensio  ---
*** Bug 475161 has been marked as a duplicate of this bug. ***

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-11-04 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=469730

Bug Janitor Service  changed:

   What|Removed |Added

 Status|REPORTED|ASSIGNED
 Ever confirmed|0   |1

--- Comment #36 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3474

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-30 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #35 from kwi...@gmail.com ---
Thanks for that hint.  I think I nailed it down a bit while fooling around at
the DBus level.
All times are displayed correctly via qdbus with manual location and manual
time (night color kicking in currently around 16:48)...

...but having set automatic location, I get that strange 18:37 again:

$ qdbus org.kde.KWin /ColorCorrect GetAll org.kde.kwin.ColorCorrect | awk
'/Time/ {print $1, strftime("%T", $2)}'
previousTransitionDateTime: 18:36:38
scheduledTransitionDateTime: 06:20:07

If I force automatic recalculation to my current location, things look great
$ qdbus org.kde.KWin /ColorCorrect nightColorAutoLocationUpdate 50 9
$ qdbus org.kde.KWin /ColorCorrect GetAll org.kde.kwin.ColorCorrect | awk
'/Time/ {print $1, strftime("%T", $2)}'
previousTransitionDateTime: 16:48:07
scheduledTransitionDateTime: 06:38:28

My guess is that auto location coordinates are not handed over correctly to
sunset/sunrise calculation, so it falls back to lat 0, long 0
$ qdbus org.kde.KWin /ColorCorrect nightColorAutoLocationUpdate 0 0 
$ qdbus org.kde.KWin /ColorCorrect GetAll org.kde.kwin.ColorCorrect | awk
'/Time/ {print $1, strftime("%T", $2)}'
previousTransitionDateTime: 18:36:38
scheduledTransitionDateTime: 06:20:07

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-28 Thread Teoh Han Hui
https://bugs.kde.org/show_bug.cgi?id=469730

Teoh Han Hui  changed:

   What|Removed |Added

 CC||teohhan...@gmail.com

--- Comment #34 from Teoh Han Hui  ---
teohhanhui@Han-MacBook-Air:~$ date
Sun 29 Oct 2023 11:21:10 AM +08
teohhanhui@Han-MacBook-Air:~$ qdbus org.kde.KWin /ColorCorrect GetAll
org.kde.kwin.ColorCorrect
available: true
currentTemperature: 3000
enabled: true
inhibited: false
mode: 0
previousTransitionDateTime: 1698428204
previousTransitionDuration: 1970526
running: true
scheduledTransitionDateTime: 1698556814
scheduledTransitionDuration: 1973224
targetTemperature: 3000

As others have mentioned, the displayed transition start/end times are correct,
and everything works fine when using manual location with the same displayed
coordinates.

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-25 Thread Ivan Garcia
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #33 from Ivan Garcia  ---
(In reply to Natalie Clarius from comment #32)
> Is it the case that the time that it says would be sunset is correct but it
> only actually kicks in one hour after it's dark, or does it display a wrong
> time for when it should be sunset at your location but the actual effect is
> aligned with the sun hours?

it shows the correct sunset time( when night color supposed to kick in) but at
least for me it kicks in at 2PM EST even though it detects the coordinates and
calculates the time  correctly (18:37 EST, full transition 19:20 EST).

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-25 Thread Natalie Clarius
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #32 from Natalie Clarius  ---
Is it the case that the time that it says would be sunset is correct but it
only actually kicks in one hour after it's dark, or does it display a wrong
time for when it should be sunset at your location but the actual effect is
aligned with the sun hours?

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-25 Thread Natalie Clarius
https://bugs.kde.org/show_bug.cgi?id=469730

Natalie Clarius  changed:

   What|Removed |Added

 CC||natalie_clar...@yahoo.de

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-24 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

mikak...@hotmail.com changed:

   What|Removed |Added

 CC|mikak...@hotmail.com|

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-23 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=469730

Nate Graham  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REPORTED

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #31 from kwi...@gmail.com ---
Cool.  Here are my steps to reproduce this:

* Select "Sunset and sunrise at current location" -> night light does not kick
in at that displayed time
* Note down the calculated times (in my case: night light starts at 18:03 and
is fully changed at 18:55) and current location (latitude/longitude; and yes:
it is correct) for the next two steps
* Select "Sunset and sunrise at manual location" and type in the location from
above and  -> the same times are displayed and this time the night light is
kicking in correctly
* Next use the times from first step and type them in under "Custom times" ->
night light starts exactly at the times specified

So, everything works well, except if I chose "Sunset and sunrise at current
location": night light is delayed (kicking in at exactly 19:37 and fully
changed (4,500K) at exactly 20:10; interesting: these times have always been
the same, despite the calculated ones jumping around 18:01-18:03)

Regional settings: (Date and time displayed correctly.)
* Region & Language: American English
* Date & Time:
** Date and Time: Set date and time automatically selected (but no difference
if enabled or not)
** Time Zone: Europe/Berlin (LMT)

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-20 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #30 from Nate Graham  ---
If you had automatic time sync turned off, and night color was wrong by exactly
the amount of time that the system time was incorrect by, but the clock showed
the correct time, that's extremely weird.

Since Silviu C is no longer able to reproduce the bug due to having stopped
using Plasma, and the issue is now fixed for Dan, we can make this bug report
about your issue, Kwizzz. 

Are you using automatic location? If so, and if setting the location manually
to the correct time fixes it, then it sounds like Bug 471639 is a duplicate of
this one.

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-17 Thread Dan Dascalescu
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #29 from Dan Dascalescu  ---
(In reply to Nate Graham from comment #27)
> In that case I think your issue is probably something different, as turning
> on automatic time sync worked for Dan.
> 
> Dan, was your clock wrong by 1 hour while automatic time sync was turned off?

The clock was correct. I did change timezones a couple times over the course of
a month, but I had set it manually as soon as I landed.

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-17 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #28 from kwi...@gmail.com ---
I think that there's more to it than daylight savings.

Today, I missed the time when night color kicked in (start: 18:06; fully
changed by 18:56) and jumped in too late: I woke up both my laptops from sleep
around 19:36, which would mean that either full night light (if working as
expected) or transition phase to night light (if it's a 1h off issue).

But both my laptops had no night color enabled (i.e. icon was not active and
color at 6,500K), which contradicts the 1h off theory.

However, the night color kicked in about 1-2 minutes after waking up (icon
became active in task bar), starting with day color temperatur default of
6,500K and gradually working down to 4,500K (default for night color
temperature) which got reached at 20:10.

Could it be that night color still decides to gradually go down to night color
temperature if invoked close to the temperature change time frame?

Is there some way to increase logging for night color control?

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-16 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #27 from Nate Graham  ---
In that case I think your issue is probably something different, as turning on
automatic time sync worked for Dan.

Dan, was your clock wrong by 1 hour while automatic time sync was turned off?

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-15 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #26 from kwi...@gmail.com ---
* Leap 15.5 having automatic time sync on: night light still 1 hour off
* F38 with automatic date & time turn on again: 1 hour off

=> no change

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-14 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=469730

--- Comment #25 from kwi...@gmail.com ---
(In reply to Nate Graham from comment #21)
> Again, for everyone experiencing this issue, do you have "Set date and time
> automatically" unchecked in Date & Time? And if so, does it start working of
> you turn that feature on?

Quick status report:
* openSUSE Leap 15.5: setting was disabled; I turned this feature on
* F38: setting was enabled; I turned it off (next step is to turn it on again;
maybe turning it off and on again solves things?)
* on both laptops, BIOS time is set to UTC (so 2 hours off to CEST)

Unfortunately, testing is annoying, as I didn't have the chance to sit in front
of my systems at the time when night light is kicking in.

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

[systemsettings] [Bug 469730] Night color shifting happens at the wrong time during daylight savings time when using manual Date & Time setting

2023-10-11 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=469730

Nate Graham  changed:

   What|Removed |Added

Summary|Night color shifting does   |Night color shifting
   |not start at the correct|happens at the wrong time
   |time or end at the correct  |during daylight savings
   |time|time when using manual Date
   ||& Time setting

--- Comment #24 from Nate Graham  ---
Thanks, I suspected as much.

So is your clock also wrong by an hour?

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