Currently i am using the below function to convert the epoch time
Function convertFrom-epoch {
[CmdletBinding()]
param ([Parameter(ValueFromPipeline=$true)]$epochdate)
if (!$psboundparameters.count) {help -ex convertFrom-epoch | Out-String | Remove-EmptyLines; return}
if (("$epochdate").length -gt 10 ) {(Get-Date -Date "01/01/1970").AddMilliseconds($epochdate)}
else {(Get-Date -Date "01/01/1970").AddSeconds($epochdate)}
}
convertFrom-epoch 1597044600
which is resulting me GMT time Monday, 10 August 2020 07:30:00
Is there is way to change the time to CDT time instead of GMT.