From 5075565d2f250b64ad3f8affded7745e6e04f20f Mon Sep 17 00:00:00 2001 From: Ske Date: Thu, 18 Jun 2020 17:41:14 +0200 Subject: [PATCH] Default to UTC given no system in member lists --- PluralKit.Bot/Commands/SystemList.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/Commands/SystemList.cs b/PluralKit.Bot/Commands/SystemList.cs index 3b633353..64e355ca 100644 --- a/PluralKit.Bot/Commands/SystemList.cs +++ b/PluralKit.Bot/Commands/SystemList.cs @@ -2,6 +2,8 @@ using System.Linq; using System.Text; using System.Threading.Tasks; +using NodaTime; + using PluralKit.Core; namespace PluralKit.Bot @@ -33,7 +35,7 @@ namespace PluralKit.Bot (eb, ms) => { 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; }); }