Fix sunset/sunrise calculation

pull/1301/head
Marco Heiming 2022-01-17 12:25:40 +01:00
parent 8f959117ef
commit 1b535d99cb
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ function getSunProgress() {
if (isDay()) {
// during day, progress until sunSet
return (now - sunSet) / (sunSet - sunRise);
return (sunSet - now) / (sunSet - sunRise);
} else {
// during night, progress until sunrise:
if (now > sunRise) {