Skip to content

Commit 8bf207e

Browse files
author
maps2002
committed
Test IsNearExpiracy while converted ToLocalTime
1 parent ee65c87 commit 8bf207e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Job/Entities/AuthorizationToken.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public AuthorizationToken(string accessToken, DateTime expiresOn)
4242
public bool IsNearExpiracy()
4343
{
4444
//// if token is expiring in the next minute or expired, return true
45-
return DateTime.UtcNow > this.ExpiresOn.AddMinutes(-1);
45+
return DateTime.UtcNow.ToLocalTime() > this.ExpiresOn.AddMinutes(-1);
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)