Private/Convert-Alert.ps1

filter Convert-Alert([TimeSpan]$TimeZoneOffset = [TimeSpan]::Zero)
{
    $StartUtc = Get-Date -UnixTimeSeconds $_.start -AsUTC
    $EndUtc = Get-Date -UnixTimeSeconds $_.end -AsUTC

    [PSCustomObject]@{
        PSTypeName  = 'UncommonSense.Weather.Alert'
        Sender      = $_.sender_name
        Event       = $_.event
        StartUtc    = $StartUtc
        Start       = $StartUtc.Add($TimeZoneOffset)
        EndUtc      = $EndUtc
        End         = $EndUtc.Add($TimeZoneOffset)
        Description = $_.description
        Tags        = $_.tags
    }
}