Fix moderation history time handling

This commit is contained in:
Meta Vens 2026-05-05 11:54:01 +01:00
commit f9ff9d2cc9
5 changed files with 169 additions and 14 deletions

View file

@ -23,7 +23,9 @@ function Write-JsonFile {
New-Item -ItemType Directory -Force -Path $directory | Out-Null
}
$Data | ConvertTo-Json -Depth 10 | Set-Content -Path $Path -Encoding UTF8
$json = $Data | ConvertTo-Json -Depth 10
$utf8NoBom = [System.Text.UTF8Encoding]::new($false)
[System.IO.File]::WriteAllText($Path, $json, $utf8NoBom)
}
function Append-RunLog {