Use timezone in manual time calculations wlsunset operates solely within UTC time to ensure that orbit calculations are stable irrespective of user timezone. The longitude is then used to localize results. This also affected manual time input, leading to bad UX. Add the timezone to manual time inputs to follow user expectations.
1 files changed, 2 insertions(+), 0 deletions(-) M main.c
M main.c => main.c +2-0
@@ 864,6 864,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "invalid time, expected HH:MM, got %s\n", optarg); goto end; } config.sunrise += timezone; config.manual_time = true; break; @@ case 's': 871,6 872,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "invalid time, expected HH:MM, got %s\n", optarg); goto end; } config.sunset += timezone; config.manual_time = true; break; case 'd':