Skip to content

Commit

Permalink
Update build_preview.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikachu2333 authored Jul 26, 2024
1 parent 0eb24bd commit a6303ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ jobs:
shell: pwsh
run: |
$NowTime = [int32](Get-Date -UFormat "%s")
Get-Date -UFormat "%Y-%m-%d_%H.%M.%S")
$Zone = [int16](Get-Date -UFormat "%Z").ToString()
$Zone
$NeedTime = (8 - $Zone) * 60 * 60
$NeedTime = ($Zone - 8) * 60 * 60
$Result = $NowTime - $NeedTime
$Formated = (Get-Date -UnixTimeSeconds $Result -UFormat "%Y-%m-%d_%H.%M.%S").ToString()
$Formated
$Formated = (Get-Date -UnixTimeSeconds $NowTime -UFormat "%Y-%m-%d_%H.%M.%S").ToString()
$Formated
"TIME_FORMATTED=$Formated" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Add summary
Expand Down

0 comments on commit a6303ca

Please sign in to comment.