mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes Unix time by always using UTC
This commit is contained in:
parent
95ffecfd05
commit
7731581660
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
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