diff --git a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/Authentication/Bot/TeamsSsoPrompt.cs b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/Authentication/Bot/TeamsSsoPrompt.cs index 3b10f3f8c..3e3ab988b 100644 --- a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/Authentication/Bot/TeamsSsoPrompt.cs +++ b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/Authentication/Bot/TeamsSsoPrompt.cs @@ -29,7 +29,7 @@ public override async Task BeginDialogAsync(DialogContext dc, int timeout = _settings.Timeout; IDictionary state = dc.ActiveDialog.State; - state[_expiresKey] = DateTime.Now.AddMilliseconds(timeout); + state[_expiresKey] = DateTime.UtcNow.AddMilliseconds(timeout); // Send OAuth card to get SSO token await this.SendOAuthCardToObtainTokenAsync(dc.Context, cancellationToken);