Skip to content

Commit b81c67c

Browse files
committed
localization: apply selected datetime format in About dialog (#2223)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 8ec1527 commit b81c67c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/About.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public About()
2222
{
2323
if (attr.Key.Equals("BuildDate", StringComparison.OrdinalIgnoreCase) && DateTime.TryParse(attr.Value, out var date))
2424
{
25-
TxtReleaseDate.Text = App.Text("About.ReleaseDate", date.ToLocalTime().ToString("MMM d yyyy"));
25+
TxtReleaseDate.Text = App.Text("About.ReleaseDate", Models.DateTimeFormat.Format(date, true));
2626
break;
2727
}
2828
}

0 commit comments

Comments
 (0)