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 7eb7cb6 commit 0eb24bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ jobs:
shell: pwsh
run: |
$NowTime = [int32](Get-Date -UFormat "%s")
$NowTime
$Zone = [int16](Get-Date -UFormat "%Z").ToString()
$Zone
$NeedTime = (8 - $Zone) * 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 0eb24bd

Please sign in to comment.