imajaydwivedi / SQLDBATools

Powershell Module containing cmdlets for carrying out SQL DBA activities.
https://ajaydwivedi.com
MIT License
13 stars 6 forks source link

Error: Get-SdtLocalTime : Exception calling "FindSystemTimeZoneById" with "1" argument(s): "The time zone ID 'Coordinated Universal Time' was not found on the local computer." #38

Closed imajaydwivedi closed 2 years ago

imajaydwivedi commented 2 years ago
(2021-11-11 20:22:37) (INFO)     Calling 'Raise-SdtAlert' to generate alert notification..
(2021-11-11 20:22:38) (ERROR)    Something went wrong. Inside catch block.
(2021-11-11 20:22:38) (INFO)     Sending mail notification using Raise-SdtAlert..
Get-SdtLocalTime : Exception calling "FindSystemTimeZoneById" with "1" argument(s): "The time zone ID 'Coordinated Universal Time' was not found on the local computer."
At C:\Program Files\WindowsPowerShell\Modules\SQLDBATools\0.0.8\Functions\Raise-SdtAlert.ps1:113 char:137
+ ... ast alert was sent @ $((Get-SdtLocalTime $lastNotifiedDateUTC).ToStri ...
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-SdtLocalTime], MethodInvocationException
    + FullyQualifiedErrorId : TimeZoneNotFoundException,Get-SdtLocalTime
imajaydwivedi commented 2 years ago

Fixed issue in file functions\Get-SdtLocalTime