Fix night mode start time
21:00 = 9PM
This commit is contained in:
parent
2e26bfc2ee
commit
5183587445
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ export function doUpdateIsNight() {
|
|||
return {
|
||||
type: ACTIONS.UPDATE_IS_NIGHT,
|
||||
data: { isNight: (() => {
|
||||
const startNightMoment = moment('19:00', 'HH:mm');
|
||||
const startNightMoment = moment('21:00', 'HH:mm');
|
||||
const endNightMoment = moment('8:00', 'HH:mm');
|
||||
return !(momentNow.isAfter(endNightMoment) && momentNow.isBefore(startNightMoment));
|
||||
})()
|
||||
|
|
Loading…
Add table
Reference in a new issue