Skip to content

Comments

[Android] Date format issue in TextRun fixed#8500

Merged
jwoo-msft merged 3 commits intomicrosoft: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 intomicrosoft:mainfrom
KnRex:neo/bug/fix_textrun_dateformat_issue

Conversation

@KnRex
Copy link
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

@jwoo-msft jwoo-msft enabled auto-merge (squash) May 1, 2023 20:38
@jwoo-msft jwoo-msft disabled auto-merge May 2, 2023 18:27
@jwoo-msft jwoo-msft merged commit e950336 into microsoft:main May 2, 2023
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
* Date format issue resolved.

* comment fixed

* comment fixed

---------

Co-authored-by: karthik <kargopal@microsoft.com>
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