mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-04 12:55:13 +00:00
Merge pull request #1050 from lbryio/start-night
Fix night mode start time
This commit is contained in:
commit
f4e094ba1c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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));
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Add table
Reference in a new issue