Remove the timezone name, just leave UTC+xxxx in

This commit is contained in:
Daniel_I_Am 2020-09-04 21:34:05 +02:00
parent 5923b91f32
commit 2cbe6c0aa5
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -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();