Fix night mode start time #1050

Merged
tzarebczan merged 2 commits from start-night into master 2018-02-27 05:48:34 +01:00
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
* *
### Fixed ### Fixed
* * Fix night mode start time, set to 9PM (#1050)
* *
### Deprecated ### Deprecated

View file

@ -71,7 +71,7 @@ export function doUpdateIsNight() {
return { return {
type: ACTIONS.UPDATE_IS_NIGHT, type: ACTIONS.UPDATE_IS_NIGHT,
data: { isNight: (() => { data: { isNight: (() => {
const startNightMoment = moment('19:00', 'HH:mm'); const startNightMoment = moment('21:00', 'HH:mm');
const endNightMoment = moment('8:00', 'HH:mm'); const endNightMoment = moment('8:00', 'HH:mm');
return !(momentNow.isAfter(endNightMoment) && momentNow.isBefore(startNightMoment)); return !(momentNow.isAfter(endNightMoment) && momentNow.isBefore(startNightMoment));
})() })()