Skip to content

Commit 9e01ad7

Browse files
committed
Show correct date and time format on UI (fix #4159)
1 parent 6a44948 commit 9e01ad7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/UniGetUI/Pages/SoftwarePages/AbstractPackagesPage.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Concurrent;
22
using System.Collections.ObjectModel;
33
using System.Diagnostics;
4+
using System.Globalization;
45
using Microsoft.UI.Input;
56
using Microsoft.UI.Xaml;
67
using Microsoft.UI.Xaml.Controls;
@@ -195,7 +196,7 @@ protected ItemsView CurrentPackageList
195196
protected string NoPackages_SubtitleText
196197
{
197198
get => NoPackages_SubtitleText_Base +
198-
(SHOW_LAST_CHECKED_TIME ? " " + CoreTools.Translate("(Last checked: {0})", LastPackageLoadTime.ToString()) : "");
199+
(SHOW_LAST_CHECKED_TIME ? " " + CoreTools.Translate("(Last checked: {0})", LastPackageLoadTime.ToString(CultureInfo.CurrentCulture)) : "");
199200
}
200201

201202
public string QueryBackup { get; set; }
@@ -907,7 +908,7 @@ string GetSubtitleText()
907908
"{0} packages were found, {1} of which match the specified filters.", FilteredPackages.Count, Loader.Count())
908909
+ " (" + CoreTools.Translate("{0} selected", selected) + ")";
909910

910-
if (SHOW_LAST_CHECKED_TIME) r += " " + CoreTools.Translate("(Last checked: {0})", LastPackageLoadTime);
911+
if (SHOW_LAST_CHECKED_TIME) r += " " + CoreTools.Translate("(Last checked: {0})", LastPackageLoadTime.ToString(CultureInfo.CurrentCulture));
911912
return r;
912913
}
913914

0 commit comments

Comments
 (0)