Fix night mode start time

21:00 = 9PM
This commit is contained in:
Thomas Zarebczan 2018-02-26 20:22:25 -05:00 committed by GitHub
parent 2e26bfc2ee
commit 5183587445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
})()