From 02449cbf9b68e683d2cba0f44aa9097465cbb22f Mon Sep 17 00:00:00 2001 From: Simon D'Morias Date: Fri, 9 Jul 2021 10:35:50 +0100 Subject: [PATCH] fix utc (#177) --- Private/ConnectFunctions.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Private/ConnectFunctions.ps1 b/Private/ConnectFunctions.ps1 index 0c9a087..81d3333 100644 --- a/Private/ConnectFunctions.ps1 +++ b/Private/ConnectFunctions.ps1 @@ -5,7 +5,7 @@ Function DatabricksTokenState{ { return "Missing" } - elseif ((Get-Date) -gt $global:DatabricksTokenExpires) { + elseif ((Get-Date -AsUTC) -gt $global:DatabricksTokenExpires) { return "Expired" } else{ @@ -20,7 +20,7 @@ Function ManagementTokenState{ { return "Missing" } - elseif ((Get-Date) -gt $global:ManagementTokenExpires) { + elseif ((Get-Date -AsUTC) -gt $global:ManagementTokenExpires) { return "Expired" } else{