From 1b535d99cb15e056e4668ce4ba1b6914c1974d03 Mon Sep 17 00:00:00 2001 From: Marco Heiming Date: Mon, 17 Jan 2022 12:25:40 +0100 Subject: [PATCH] Fix sunset/sunrise calculation --- apps/circlesclock/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/circlesclock/app.js b/apps/circlesclock/app.js index 816d81727..06d7626b9 100644 --- a/apps/circlesclock/app.js +++ b/apps/circlesclock/app.js @@ -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) {