From f4ed907134314363a0f4f6cf08de5ca757289da7 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 3 Aug 2024 13:53:42 +0000 Subject: [PATCH] fix: Possible fix for a broken timestamp tag in remind list --- .../Modules/Utility/Remind/RemindCommands.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs b/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs index 34be44ec1..5c673f080 100644 --- a/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs +++ b/src/NadekoBot/Modules/Utility/Remind/RemindCommands.cs @@ -95,8 +95,8 @@ public partial class Utility return; var embed = _sender.CreateEmbed() - .WithOkColor() - .WithTitle(GetText(isServer ? strs.reminder_server_list : strs.reminder_list)); + .WithOkColor() + .WithTitle(GetText(isServer ? strs.reminder_server_list : strs.reminder_list)); List rems; await using (var uow = _db.GetDbContext()) @@ -114,10 +114,9 @@ public partial class Utility { var when = rem.When; embed.AddField( - $"#{++i + (page * 10)} {rem.When:HH:mm yyyy-MM-dd} UTC " - + $"{TimestampTag.FromDateTime(when)}", - $@"`Target:` {(rem.IsPrivate ? "DM" : "Channel")} -`TargetId:` {rem.ChannelId} + $"#{++i + (page * 10)}", + $@"`When:` {TimestampTag.FromDateTime(when, TimestampTagStyles.ShortDateTime)} +`Target:` {(rem.IsPrivate ? "DM" : "Channel")} [`{rem.ChannelId}`] `Message:` {rem.Message?.TrimTo(50)}"); } }