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