Skip to content

[Android] Date format issue in TextRun fixed#8500

Merged
jwoo-msft merged 3 commits into
microsoft:mainfrom
KnRex:neo/bug/fix_textrun_dateformat_issue
May 2, 2023
Merged

[Android] Date format issue in TextRun fixed#8500
jwoo-msft merged 3 commits into
microsoft:mainfrom
KnRex:neo/bug/fix_textrun_dateformat_issue

Conversation

@KnRex
Copy link
Copy Markdown
Contributor

@KnRex KnRex commented Apr 28, 2023

Description

Date is not formatted in TextRun if language is not set.

To fix this issue default locale language is set.

Sample Card


{
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.2",
        "body": [

            {
                "type": "RichTextBlock",
                "inlines": [
                    {
                        "type": "TextRun",
                        "text": "Date-Time parsing: {{DATE(2017-02-14T06:08:39Z,LONG)}} {{TIME(2017-02-14T06:08:39Z)}}"
                    }
                ]
            }
        ]
    }


How Verified

Before After
image image
Microsoft Reviewers: Open in CodeFlow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants