-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard greetings shows goodmorning while it is after 12:00 (24h) #24938
Comments
I don't see how this post is related to your bug report.
server/apps/dashboard/src/App.vue Lines 164 to 178 in 87e917c
Above code generates the greeting text. You may use the browser's developers tool (F12) to debug the issue. |
Thanks for your reference to the code (and including it). The code shows:
That should be "time >= 12" at least for 24H time notation (and that is what is used in most countries in the world except 3). The afternoon start after 12:00. This seems fixable. |
Sounds good to me. I guess there are not strict rules. Mind to sent a patch with your suggested time ranges? Afternoon is from 19 to 0 at the moment. I think that's also a bit unusual (at least in Germany). Night is usually from 22 to 6. |
It seems that it is not possible to attached a file :( The times are now according the following table:
There are tabs in the code :( that makes it hard to provide a simple patch. All the lines start with tabs:
|
@radoeka, I could do it for you if you like?
@kesselb, yes the rules are not very strict but there is some variance - I was surprised to discover, after a quick google search, that for some people evening starts at 5 pm (17:00) and night - at 8 pm (20:00). One thing to note is that "Good night" is not normally used as a greeting in English, it is a way of saying goodbye instead: https://english.stackexchange.com/questions/100870/what-is-an-appropriate-greeting-to-use-at-night-time. Some suggestions from that link are "Greetings, night owl" (which sounds very dawn-of-the-internet to me), using "Good evening" up to midnight and beyond or the universal "Hello!". |
@jancborchardt, done! The cut-off times in my PR are slightly different to what @radoeka suggested (i.e. evening starts at 6 pm, not 7 pm), but I'm happy to adjust to whatever you would prefer instead. |
The solution for this would be to make the time configurable for the user. This way almost everybody can be happy, with get getting a good evening starting at 17:00 and others at 19:00. |
Thanks for looking into this, and making the code nicer and better. One more observation should there be a comma in the greeting or not? Is it: From a privacy point of view it would be nice to be able to hide the name. For example when one is in a train, not everbody needs to know my name... |
Steps to reproduce
Expected behaviour
The greeting should be Good Afternoon.
Actual behaviour
The greeting shows Good morning
See https://help.nextcloud.com/t/dashboard-time-incorrect/101461 as well.
Server configuration
Operating system: openSUSE_15.2
Web server: Apache
Database: SQLite
PHP version: 7.4.6
Nextcloud version: (see Nextcloud admin page) 20.0.4
Updated from an older Nextcloud/ownCloud or fresh install: older
Where did you install Nextcloud from: Nextcloud
Client configuration
Browser: Chromium
Operating system: windows / linux
The text was updated successfully, but these errors were encountered: