From 4fbd0531ea3c8065d8efbe1cb8e31938113748c5 Mon Sep 17 00:00:00 2001 From: Martin Bengtsson Date: Sat, 11 Jul 2020 08:47:44 +0200 Subject: [PATCH] Add files via upload Fixed Personal Greeting error --- New-ToastNotification.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/New-ToastNotification.ps1 b/New-ToastNotification.ps1 index 0815d75..6861558 100644 --- a/New-ToastNotification.ps1 +++ b/New-ToastNotification.ps1 @@ -930,10 +930,10 @@ if ($PSAppStatus -eq "True") { if ($GreetGivenName -eq "True") { Write-Log -Message "Greeting with given name selected. Replacing HeaderText" $Hour = (Get-Date).TimeOfDay.Hours - if (($Hour -lt 0) -and ($Hour -lt 12)) { + if (($Hour -ge 0) -AND ($Hour -lt 12)) { $Greeting = $GreetMorningText } - elseif (($Hour -lt 12) -and ($Hour -lt 16)) { + elseif (($Hour -ge 12) -AND ($Hour -lt 16)) { $Greeting = $GreetAfternoonText } else {