Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jayrodksmith authored Mar 21, 2024
1 parent 66ab1b1 commit 7502eee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Private/RMM/Write-WarrantyNinjaRMM.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,12 @@ function Write-WarrantyNinjaRMM {
} else {
if($Warrantystart){
Write-Verbose "Warrantystart: $Warrantystart"
$Warrantystart = [DateTime]::ParseExact($Warrantystart, $dateformat, $null)
Write-Verbose "Warrantystart Converted: $Warrantystart"
# Convert to UTC
$Warrantystartutc = Get-Date $Warrantystart -Format "yyyy-MM-dd"
Write-Verbose "Warrantystart UTC: $Warrantystartutc"
}
if($WarrantyExpiry){
Write-Verbose "WarrantyExpiry: $WarrantyExpiry"
$WarrantyExpiry = [DateTime]::ParseExact($WarrantyExpiry, $dateformat, $null)
Write-Verbose "WarrantyExpiry Converted: $WarrantyExpiry"
# Convert to UTC
$WarrantyExpiryutc = Get-Date $WarrantyExpiry -Format "yyyy-MM-dd"
Write-Verbose "WarrantyExpiry UTC: $WarrantyExpiryutc"
Expand Down

0 comments on commit 7502eee

Please sign in to comment.