We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee65c87 commit 8bf207eCopy full SHA for 8bf207e
Job/Entities/AuthorizationToken.cs
@@ -42,7 +42,7 @@ public AuthorizationToken(string accessToken, DateTime expiresOn)
42
public bool IsNearExpiracy()
43
{
44
//// if token is expiring in the next minute or expired, return true
45
- return DateTime.UtcNow > this.ExpiresOn.AddMinutes(-1);
+ return DateTime.UtcNow.ToLocalTime() > this.ExpiresOn.AddMinutes(-1);
46
}
47
48
0 commit comments