From 3f7e5d5054623e9093dda07c47ba06af671dcdee Mon Sep 17 00:00:00 2001 From: Toastie Date: Mon, 5 Aug 2024 14:04:18 +1200 Subject: [PATCH] Possible fix for a broken timestamp tag in remind list --- src/EllieBot/Modules/Utility/Remind/RemindCommands.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/EllieBot/Modules/Utility/Remind/RemindCommands.cs b/src/EllieBot/Modules/Utility/Remind/RemindCommands.cs index 67b87af..a9eda9e 100644 --- a/src/EllieBot/Modules/Utility/Remind/RemindCommands.cs +++ b/src/EllieBot/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)}"); } }