mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Fixed night mode over midnight time range check (fixes #1673)
This commit is contained in:
@@ -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
|
||||||
|
@@ -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"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user