Wrong value returned for Input.Time in adaptive card

Andrew Clear 6 Reputation points Microsoft Employee

Original Issue posted here: https://github.com/microsoft/botbuilder-js/issues/3861

This is a Teams specific bug I believe, sorry for filing it here, could somebody please forward it? Thank you.

SDK 4.13
nodejs 12.16

Describe the bug
When the Teams client is set to Chinese or Korean the Input.Time in an adapative card is localized, 2:30pm in Chinese is "2:30 下午". The value of the Input.Time upon submitting the card to the bot should be 14:30 but instead it is 02:30 (am!). It works fine for US style 2:30pm notation, where the value is 14:30.

To Reproduce
Set your Teams client to Chinese or Korean.
The bot sends an adaptive card with an Input.Time and a submit button
Set a time in the afternoon, like 2:30 下午
Submit the card
The bot receives '02:30' in the submitAction

Expected behavior
The bot should always receive 24 hr time, 14:30 in the example above.

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,029 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Meghana-MSFT 3,831 Reputation points Microsoft Vendor

    @Andrew Clear ,

    We were able to repro the issue. We have raised a bug and the concerned team is looking into it.

    The same issue is raised on github and you can track it for future updates

    0 comments No comments

  2. Matthias Dilger 1 Reputation point

    I just tried it again, it seems to have been fixed

    0 comments No comments