Closed rfessia closed 7 months ago
This is not an SDK issue. LocalTimeZone is supplied in the incoming Activity JSON payload. In this case, it's not there so will of course be null. This would also be the case with LocalTimestamp.
Thanks @tracyboehrer. Where should I report this issue? The teams ai Recommend me to post he issue in this team... https://github.com/microsoft/teams-ai/issues/1493
Language
C#
Version
12
Description
In Microsoft Teams, when we use copilot the
Activity.LocalTimezone
property (in Bot Framework SDK) has no value, while if we perform a query without using copilot, it returns a value.In the official Microsoft documentation it says that this property can be used to get the time zone from messages. We need to know the user's LocalTimeZone to make correct filters in our system: https://learn.microsoft.com/en-us/dotnet/api/microsoft.bot.schema.activity.localtimezone?view=botbuilder-dotnet-stable
BUG WHEN USING COPILOT:
localTimezone
in the request.LocalTimeZone
property in TurnContext is null.SUCCESSFUL REQUEST WHEN NOT USING COPILOT
localTimezone
is present in the request.LocalTimeZone
property has value inITurnContext
:)P.S., Some values in the request were replaced with "xxx" just for security reasons.
STACK VERSION:
All packages used in the project:
Thank you, I look forward to your prompt response, Regards
Reproduction Steps