Skip to content

Commit 6856a89

Browse files
committed
fix: use native time function in install script
1 parent 65273e1 commit 6856a89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/static/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Write-Host "API Key: $maskedKey" -ForegroundColor DarkGray
109109

110110
Write-Host
111111
Write-Host "Sending test heartbeat..." -ForegroundColor White
112-
$time = [Math]::Floor([decimal](Get-Date(Get-Date).ToUniversalTime()-uformat '%s'))
112+
$time = [DateTimeOffset]::UtcNow.ToUnixTimeSeconds()
113113
$heartbeat = @{
114114
type = 'file'
115115
time = $time

0 commit comments

Comments
 (0)