use event year instead of current year for event formatting

This commit is contained in:
13xforever 2019-10-12 20:55:48 +05:00
parent aeb118117b
commit b986726cd0

View File

@ -93,7 +93,7 @@ namespace CompatBot.Commands
if (firstNamedEvent.Start >= currentTicks)
{
var upcomingNamedEventMsg = $"__{FormatCountdown(firstNamedEvent.Start.AsUtc() - current)} until {eventName} {current.Year}!__";
var upcomingNamedEventMsg = $"__{FormatCountdown(firstNamedEvent.Start.AsUtc() - current)} until {eventName} {firstNamedEvent.Year}!__";
if (string.IsNullOrEmpty(promo) || nextEvent?.Id == firstNamedEvent.Id)
upcomingNamedEventMsg += $"\nFirst event: {firstNamedEvent.Name}";
else
@ -124,7 +124,7 @@ namespace CompatBot.Commands
return;
}
var upcomingNamedEventMsg = $"__{FormatCountdown(firstNamedEvent.Start.AsUtc() - current)} until {eventName} {current.Year}!__";
var upcomingNamedEventMsg = $"__{FormatCountdown(firstNamedEvent.Start.AsUtc() - current)} until {eventName} {firstNamedEvent.Year}!__";
if (string.IsNullOrEmpty(promo) || nextEvent?.Id == firstNamedEvent.Id)
upcomingNamedEventMsg += $"\nFirst event: {firstNamedEvent.Name}";
else