chore: to utc time

This commit is contained in:
uye
2025-04-25 15:36:07 +08:00
committed by GitHub
parent f98a595620
commit 2f8840feac

View File

@@ -40,7 +40,7 @@ else {
if (Test-Path $versionFile) {
$json = Get-Content -Path $versionFile | ConvertFrom-Json
$json.last_updated = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss.fff")
$json.last_updated = (Get-Date).ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss.fff")
$jsonFormatted = $json | ConvertTo-Json -Depth 3
$jsonFormatted = $jsonFormatted -replace " ", " "