Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
fix utc (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon D'Morias authored Jul 9, 2021
1 parent c35df14 commit 02449cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Private/ConnectFunctions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Function DatabricksTokenState{
{
return "Missing"
}
elseif ((Get-Date) -gt $global:DatabricksTokenExpires) {
elseif ((Get-Date -AsUTC) -gt $global:DatabricksTokenExpires) {
return "Expired"
}
else{
Expand All @@ -20,7 +20,7 @@ Function ManagementTokenState{
{
return "Missing"
}
elseif ((Get-Date) -gt $global:ManagementTokenExpires) {
elseif ((Get-Date -AsUTC) -gt $global:ManagementTokenExpires) {
return "Expired"
}
else{
Expand Down

0 comments on commit 02449cb

Please sign in to comment.