Remove the timezone name, just leave UTC+xxxx in
This commit is contained in:
parent
5923b91f32
commit
2cbe6c0aa5
@ -81,16 +81,7 @@ namespace ChaosBot.Discord.Modules.Admin
|
|||||||
embedContentBuilder.AppendLine();
|
embedContentBuilder.AppendLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
string timezoneAbbreviation = string
|
string timezoneAbbreviation = TimeZoneInfo.Local.DisplayName.Split(' ').First();
|
||||||
.Join("", TimeZoneInfo.Local.DisplayName
|
|
||||||
.Split(' ')
|
|
||||||
.Select(
|
|
||||||
(t, i) =>
|
|
||||||
{
|
|
||||||
if (i == 0)
|
|
||||||
return t + ' ';
|
|
||||||
return t.Substring(0, 1);
|
|
||||||
}));
|
|
||||||
embedContentBuilder.AppendLine($"Reported Generated by <@{Context.User.Id}> at {DateTime.Now} {timezoneAbbreviation}");
|
embedContentBuilder.AppendLine($"Reported Generated by <@{Context.User.Id}> at {DateTime.Now} {timezoneAbbreviation}");
|
||||||
|
|
||||||
embedBuilder.Description = embedContentBuilder.ToString();
|
embedBuilder.Description = embedContentBuilder.ToString();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user