correctly changing task due timestamp to local time instead of leaving it in UTC
Security / security (push) Successful in 2m14s
Security / security (push) Successful in 2m14s
fixes #7
This commit is contained in:
@@ -66,7 +66,7 @@ while ($true) {
|
||||
{
|
||||
if ($chore.nextDueDate)
|
||||
{
|
||||
$dueDate = Get-Date $chore.nextDueDate
|
||||
$dueDate = (Get-Date $chore.nextDueDate).ToLocalTime()
|
||||
if (($dueDate - $today).Days -lt 0) #OVERDUE
|
||||
{
|
||||
write-host "$($chore.name) $dueDate is overdue!"
|
||||
|
||||
Reference in New Issue
Block a user