更新时间:2022-04-14 03:28:27
您可以使用 PowerShell 更新时区并在之后重置.这可以使用 AppVeyor 环境变量、Get-TimeZone &设置时区.这是一个 appveyor.yml
示例:
You could use PowerShell to update the timezone and reset it after. This can be achieved using AppVeyor environment variables, Get-TimeZone & Set-TimeZone. Here is an appveyor.yml
sample:
init:
- ps: $env:ORIGIONAL_TZ = Get-TimeZone
- ps: Set-TimeZone -Name "Pacific Standard Time"
on_finish:
- ps: Set-TimeZone -Name $env:ORIGIONAL_TZ