Merge pull request #25110 from nextcloud/fix/24970/dashboard-greetings

Fix night condition in dashboard greeting
This commit is contained in:
Roeland Jago Douma 2021-01-14 11:36:29 +01:00 committed by GitHub
commit 121e2d832b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -166,7 +166,7 @@ export default {
// Determine part of the day // Determine part of the day
let partOfDay let partOfDay
if (time >= 22 && time < 5) { if (time >= 22 || time < 5) {
partOfDay = 'night' partOfDay = 'night'
} else if (time >= 18) { } else if (time >= 18) {
partOfDay = 'evening' partOfDay = 'evening'