From: Kowlin <10947836+Kowlin@users.noreply.github.com> Date: Sun, 21 Sep 2025 15:26:22 +0000 (+0200) Subject: Add date formatting to admin-notes-unbanned (#40484) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2245235db1fa4eada023ce3302ad93b52cefc4c2;p=space-station-14.git Add date formatting to admin-notes-unbanned (#40484) --- diff --git a/Content.Client/Administration/UI/Notes/AdminNotesLine.xaml.cs b/Content.Client/Administration/UI/Notes/AdminNotesLine.xaml.cs index ead1d8b00e..97ddc15000 100644 --- a/Content.Client/Administration/UI/Notes/AdminNotesLine.xaml.cs +++ b/Content.Client/Administration/UI/Notes/AdminNotesLine.xaml.cs @@ -82,7 +82,11 @@ public sealed partial class AdminNotesLine : BoxContainer if (Note.UnbannedTime is not null) { - ExtraLabel.Text = Loc.GetString("admin-notes-unbanned", ("admin", Note.UnbannedByName ?? "[error]"), ("date", Note.UnbannedTime)); + ExtraLabel.Text = Loc.GetString( + "admin-notes-unbanned", + ("admin", Note.UnbannedByName ?? "[error]"), + ("date", Note.UnbannedTime.Value.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")) + ); ExtraLabel.Visible = true; } else if (Note.ExpiryTime is not null) @@ -139,7 +143,7 @@ public sealed partial class AdminNotesLine : BoxContainer private string FormatRoleBanMessage() { - var banMessage = new StringBuilder($"{Loc.GetString("admin-notes-banned-from")} {string.Join(", ", Note.BannedRoles ?? new []{"unknown"})} "); + var banMessage = new StringBuilder($"{Loc.GetString("admin-notes-banned-from")} {string.Join(", ", Note.BannedRoles ?? new[] { "unknown" })} "); return FormatBanMessageCommon(banMessage); }