Skip to content
Permalink
Browse files
Fixed issue with Epoch to DatTime conversion
  • Loading branch information
Uladzislau Dadzimau committed Jul 7, 2020
1 parent 00ea9e3 commit a0af60ea4fc047f89a5aab55b2bdc314e0c2d123
Showing 1 changed file with 1 addition and 1 deletion.
@@ -4,5 +4,5 @@ function ConvertTo-DateTime {
[Parameter(Mandatory = $true, ValueFromPipeline)][int32]$time
);

return (Get-Date "1/1/1970").ToUniversalTime().AddSeconds($time);
return (Get-Date "1/1/1970").AddSeconds($time);
}

0 comments on commit a0af60e

Please sign in to comment.