From 3af7299eea2a5af3485f3cd0b256682b73b123f0 Mon Sep 17 00:00:00 2001 From: Matthew Gray Date: Sun, 11 Oct 2026 13:49:21 +0300 Subject: [PATCH] Update Export-Excel.ps1 Data type fix in Export-Excel --- Public/Export-Excel.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/Export-Excel.ps1 b/Public/Export-Excel.ps1 index 5c08b208..020be41b 100644 --- a/Public/Export-Excel.ps1 +++ b/Public/Export-Excel.ps1 @@ -316,7 +316,7 @@ $ws.Cells[$row, $ColumnIndex].Style.Numberformat.Format = '[h]:mm:ss' } elseif ($v -is [System.ValueType]) { - $ws.Cells[$row, $ColumnIndex].Value = $v + $ws.Cells[$row, $ColumnIndex].Value = if ($v -is [char]) {$v.ToString()} else {$v} if ($setNumformat) { $ws.Cells[$row, $ColumnIndex].Style.Numberformat.Format = $Numberformat } } elseif ($v -is [uri] -and