fix: afternoon hours start from 12 PM, not 10 AM

This commit is contained in:
pml68 2024-02-24 21:22:33 +01:00
parent 1171e3aaaf
commit 2ff2ae7d98
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class _HomePageState extends State<HomePage>
greeting = "happynewyear";
} else if (now.hour >= 18) {
greeting = "goodevening";
} else if (now.hour >= 10) {
} else if (now.hour >= 12) {
greeting = "goodafternoon";
} else if (now.hour >= 4) {
greeting = "goodmorning";

View File

@ -154,7 +154,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
customWelcome = true;
} else if (now.hour >= 18) {
greeting = "goodevening";
} else if (now.hour >= 10) {
} else if (now.hour >= 12) {
greeting = "goodafternoon";
} else if (now.hour >= 4) {
greeting = "goodmorning";