mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixes Unix time by always using UTC
This commit is contained in:
parent
70855ea0fb
commit
fcce0f4fb1
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
function Get-IcingaUnixTime()
|
function Get-IcingaUnixTime()
|
||||||
{
|
{
|
||||||
return [int][double]::Parse((Get-Date -UFormat %s))
|
return [int][double]::Parse(
|
||||||
|
(Get-Date -UFormat %s -Date (Get-Date).ToUniversalTime())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue