Default to UTC given no system in member lists

This commit is contained in:
Ske 2020-06-18 17:41:14 +02:00
parent 7e8e1f1b8c
commit 5075565d2f

View File

@ -2,6 +2,8 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using NodaTime;
using PluralKit.Core; using PluralKit.Core;
namespace PluralKit.Bot namespace PluralKit.Bot
@ -33,7 +35,7 @@ namespace PluralKit.Bot
(eb, ms) => (eb, ms) =>
{ {
eb.WithFooter($"{opts.CreateFilterString()}. {members.Count} results."); eb.WithFooter($"{opts.CreateFilterString()}. {members.Count} results.");
renderer.RenderPage(eb, ctx.System.Zone, ms); renderer.RenderPage(eb, ctx.System?.Zone ?? DateTimeZone.Utc, ms);
return Task.CompletedTask; return Task.CompletedTask;
}); });
} }