Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Fixes #11472
Browse files Browse the repository at this point in the history
Fixes #11471
  • Loading branch information
memu8 committed Jul 20, 2020
1 parent 13e79c0 commit 8e291f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Xamarin.Forms.Controls.Issues
[Category(UITestCategories.DatePicker)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.None, 88888888, "DateTime Localization Issue",
[Issue(IssueTracker.Github, 11472, "DateTime Localization Issue",
PlatformAffected.iOS | PlatformAffected.Android)]
public class DateTimeLocalizationTests : TestNavigationPage
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,14 @@ void OnCancelButtonClicked(object sender, EventArgs e)

void SetDate(DateTime date)
{
EditText.Text = date.ToString(Element.Format);
if (Element.Format == "")
{
EditText.Text = date.ToShortDateString();
}
else
{
EditText.Text = date.ToString(Element.Format);
}
}

void UpdateCharacterSpacing()
Expand Down

0 comments on commit 8e291f5

Please sign in to comment.