timezone bugs, changed webhook listener to use + since posh doesn't allow 0.0.0.0
Security / security (push) Successful in 58s
Security / security (push) Successful in 58s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[string] $ListenUrl = "http://0.0.0.0:8080/"
|
[string] $ListenUrl = "http://+:8080/"
|
||||||
|
|
||||||
function Write-JsonResponse
|
function Write-JsonResponse
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ if ($overdueTasks.Count -ne 0)
|
|||||||
$content = "The following tasks are overdue!`n"
|
$content = "The following tasks are overdue!`n"
|
||||||
foreach($overdueTask in $overdueTasks)
|
foreach($overdueTask in $overdueTasks)
|
||||||
{
|
{
|
||||||
$content += "$($overdueTask.Name) was due $((Get-Date $overdueTask.nextDueDate -Format "MM/dd/yyyy HH:mm").ToLocalTime())`n"
|
$content += "$($overdueTask.Name) was due $((Get-Date $overdueTask.nextDueDate).ToLocalTime())`n"
|
||||||
}
|
}
|
||||||
Send-Notification -title "OVERDUE TASKS" -content $content
|
Send-Notification -title "OVERDUE TASKS" -content $content
|
||||||
}
|
}
|
||||||
@@ -97,7 +97,7 @@ if ($todaysTasks.Count -ne 0)
|
|||||||
$content = "The following tasks are due today!`n"
|
$content = "The following tasks are due today!`n"
|
||||||
foreach($task in $todaysTasks)
|
foreach($task in $todaysTasks)
|
||||||
{
|
{
|
||||||
$content += "$($task.Name) is due $((Get-Date $task.nextDueDate -Format "MM/dd/yyyy HH:mm").ToLocalTime())`n"
|
$content += "$($task.Name) is due $((Get-Date $task.nextDueDate).ToLocalTime())`n"
|
||||||
}
|
}
|
||||||
Send-Notification -title "TODAY'S TASKS" -content $content
|
Send-Notification -title "TODAY'S TASKS" -content $content
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user