From 2cbe6c0aa5a495e7a08611445e57c47fb23fd9ed Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Fri, 4 Sep 2020 21:34:05 +0200 Subject: [PATCH] Remove the timezone name, just leave UTC+xxxx in --- ChaosBot/Discord/Modules/Admin/RankCheck.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ChaosBot/Discord/Modules/Admin/RankCheck.cs b/ChaosBot/Discord/Modules/Admin/RankCheck.cs index 22d7158..b21ad3f 100644 --- a/ChaosBot/Discord/Modules/Admin/RankCheck.cs +++ b/ChaosBot/Discord/Modules/Admin/RankCheck.cs @@ -81,16 +81,7 @@ namespace ChaosBot.Discord.Modules.Admin embedContentBuilder.AppendLine(); } - string timezoneAbbreviation = string - .Join("", TimeZoneInfo.Local.DisplayName - .Split(' ') - .Select( - (t, i) => - { - if (i == 0) - return t + ' '; - return t.Substring(0, 1); - })); + string timezoneAbbreviation = TimeZoneInfo.Local.DisplayName.Split(' ').First(); embedContentBuilder.AppendLine($"Reported Generated by <@{Context.User.Id}> at {DateTime.Now} {timezoneAbbreviation}"); embedBuilder.Description = embedContentBuilder.ToString();