Skip to content

[Android] Date format issue in TextRun fixed - #8500

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

Joseph Woo (jwoo-msft) merged 3 commits into
microsoft:mainfrom
KnRex:neo/bug/fix_textrun_dateformat_issue

Conversation

@KnRex

@KnRex KnRex commented Apr 28, 2023 •

Copy link
Copy Markdown
Contributor

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
Joseph Woo (jwoo-msft) enabled auto-merge (squash) May 1, 2023 20:38
@jwoo-msft
Joseph Woo (jwoo-msft) merged commit e950336 into microsoft:main May 2, 2023
Rankush Kumar (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