Skip to content

Commit

Permalink
Update GuildEventScheduleService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinki14 committed Nov 18, 2023
1 parent 1569e49 commit 20bcace
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Miha.Discord/Services/Hosted/GuildEventScheduleService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Text;
using System.Globalization;
using System.Text;
using Cronos;
using Discord;
using Discord.Addons.Hosting;
Expand Down Expand Up @@ -165,7 +166,8 @@ private async Task PostWeeklyScheduleAsync()
}

var dayUnspecified = day.ToDateTimeOffset();
description.AppendLine("### " + day.ToString("dddd") + " - " + dayUnspecified.ToDiscordTimestamp(TimestampTagStyles.ShortDate));
var dayInEst = day.ToLocalDateTime().Date.AtStartOfDayInZone(_easternStandardZonedClock.GetTzdbTimeZone()).Date.ToString("dddd", new CultureInfo("en-us"));
description.AppendLine("### " + dayInEst + " - " + dayUnspecified.ToDiscordTimestamp(TimestampTagStyles.ShortDate));

foreach (var guildEvent in events.OrderBy(e => e.StartTime))
{
Expand Down

0 comments on commit 20bcace

Please sign in to comment.