kwin/colorcorrection
Vlad Zahorodnii c265c7f2c6 [nightcolor] Use local time in Automatic and Location mode
Summary:
Currently Night Color doesn't handle time zones very well. For example,
if the user's time zone is UTC-8, then computed timings of sunrise and
sunset (in UTC) will be a bit gibberish as sunset occurs before sunrise
rather than vice versa.

This change switches relevant parts of Night Color to local time in
order to fix expectations about the order of morning and evening in
updateSunTimings() method as well to simplify the code a bit (dealing
with UTC and local time can be painful sometimes).

CCBUG: 412211

Reviewers: #kwin, romangg

Reviewed By: #kwin, romangg

Subscribers: romangg, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24153
2019-09-26 11:31:01 +03:00
..
colorcorrect_settings.kcfg [colorcorrection] Add "Constant" mode 2019-07-22 00:30:39 +03:00
colorcorrect_settings.kcfgc
colorcorrectdbusinterface.cpp
colorcorrectdbusinterface.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
constants.h Use more traditional doxygen style 2019-07-29 22:06:19 +03:00
manager.cpp [nightcolor] Use local time in Automatic and Location mode 2019-09-26 11:31:01 +03:00
manager.h [nightcolor] Use local time in Automatic and Location mode 2019-09-26 11:31:01 +03:00
suncalc.cpp [nightcolor] Use local time in Automatic and Location mode 2019-09-26 11:31:01 +03:00
suncalc.h [nightcolor] Use local time in Automatic and Location mode 2019-09-26 11:31:01 +03:00