Why does MS Teams Date and Time functions on adaptive card doesn't pick the timezone in MS Teams Desktop and show localized time

Nouman Farooq 6 Reputation points
2023-03-02T07:09:47.5966667+00:00

I have following adaptive card
So when i change browser language it show the date and time and localized format but when i change my system's timezone locally it doesn't show me the date and time in localized format
I'm referencing to this article
https://learn.microsoft.com/en-us/adaptive-cards/authoring-cards/text-features

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "TextBlock",
            "text": "Your package will arrive on {{DATE(2017-02-14T06:00:00Z, SHORT)}} at {{TIME(2017-02-14T06:00:00Z)}}",
            "wrap": true
        }
    ]
}

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,960 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,207 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 2,341 Reputation points Microsoft Vendor
    2023-03-22T13:16:21.7133333+00:00

    This is byDesign Behavior.
    We use the localization date/time format of the language selected in the Teams desktop app, not the local desktop. This is by design.

    If the developer switches the language of their app, then the date and time format should be aligned with the country of origin. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.