We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d29ad06 commit 4c9e854Copy full SHA for 4c9e854
1 file changed
src/OnCommand-Insight.psm1
@@ -212,7 +212,7 @@ function ConvertFrom-UnixTimestamp {
212
PROCESS {
213
$Timestamp = @($Timestamp)
214
foreach ($Timestamp in $Timestamp) {
215
- $Date = [System.TimeZoneInfo]::ConvertTime(([datetime]'1/1/1970').AddMilliseconds($Timestamp),$Timezone)
+ $Date = [System.TimeZoneInfo]::ConvertTimeFromUtc(([datetime]'1/1/1970').AddMilliseconds($Timestamp),$Timezone)
216
Write-Output $Date
217
}
218
0 commit comments