Fixed night mode over midnight time range check (fixes #1673)

This commit is contained in:
Bernd Bestel
2021-11-08 21:38:19 +01:00
parent 3f88b8dfa2
commit 29371163ad
2 changed files with 2 additions and 1 deletions

View File

@@ -2,3 +2,4 @@
- The default shopping list (named "Shopping list"; localized) can now be renamed - The default shopping list (named "Shopping list"; localized) can now be renamed
- Fixed that the "Stay logged in permanently" checkbox on the login page had no effect (thanks @0) - Fixed that the "Stay logged in permanently" checkbox on the login page had no effect (thanks @0)
- Fixed that the labels of context-/more-menu items were not readable in Night Mode (thanks @corbolais) - Fixed that the labels of context-/more-menu items were not readable in Night Mode (thanks @corbolais)
- Fixed that auto night mode over midnight did not always work

View File

@@ -89,7 +89,7 @@ function CheckNightMode()
end.add(1, "day"); end.add(1, "day");
} }
if (start.isSameOrBefore(now) && end.isSameOrAfter(now)) // We're INSIDE of night mode time range if (now.isBetween(start, end)) // We're INSIDE of night mode time range
{ {
if (!$("body").hasClass("night-mode")) if (!$("body").hasClass("night-mode"))
{ {