You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was looking at the logs and noticed that here in Arizona this happens: Get-WmiObject -Class Win32_TimeZone | Select-Object -ExpandProperty Bias
Gives us
-420
A negative value added to the end of the $Time string can not be parsed by the Cmtrace tool.
so on line 57 I added an Absolute Value Function to the result: $Time = -join @((Get-Date -Format "HH:mm:ss.fff"), "+", [math]::abs((Get-WmiObject -Class Win32_TimeZone | Select-Object -ExpandProperty Bias)))
I have no idea if this is the right thing to do, I just know it's the quick fix I had to put in place, I'm sure you have a better answer.
The text was updated successfully, but these errors were encountered:
Was looking at the logs and noticed that here in Arizona this happens:
Get-WmiObject -Class Win32_TimeZone | Select-Object -ExpandProperty Bias
Gives us
-420
A negative value added to the end of the $Time string can not be parsed by the Cmtrace tool.
so on line 57 I added an Absolute Value Function to the result:
$Time = -join @((Get-Date -Format "HH:mm:ss.fff"), "+", [math]::abs((Get-WmiObject -Class Win32_TimeZone | Select-Object -ExpandProperty Bias)))
I have no idea if this is the right thing to do, I just know it's the quick fix I had to put in place, I'm sure you have a better answer.
The text was updated successfully, but these errors were encountered: