Merge pull request #1050 from lbryio/start-night

Fix night mode start time
This commit is contained in:
Sean Yesmunt 2018-02-26 20:48:33 -08:00 committed by GitHub
commit f4e094ba1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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));
})() })()