From c8ea928de7eae94e17959811d504143a3f4f9d61 Mon Sep 17 00:00:00 2001 From: Toastie <toastie@toastiet0ast.com> Date: Sun, 16 Mar 2025 14:36:56 +1300 Subject: [PATCH] Fixed bot.time and bot.date showing current timestamp time, which didn't make sense --- .../Replacements/Impl/ReplacementRegistrator.default.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs b/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs index 0d8e43f..0ef7df6 100644 --- a/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs +++ b/src/EllieBot/_common/Replacements/Impl/ReplacementRegistrator.default.cs @@ -11,12 +11,10 @@ public sealed partial class ReplacementPatternStore private void WithDefault() { Register("%bot.time%", - static () - => TimestampTag.FromDateTime(DateTime.UtcNow, TimestampTagStyles.ShortTime).ToString()); + static () => DateTime.Now.ToShortTimeString()); Register("%bot.date%", - static () - => TimestampTag.FromDateTime(DateTime.UtcNow, TimestampTagStyles.ShortTime).ToString()); + static () => DateTime.Now.ToShortDateString()); } private void WithClient()