From 3793a71dde5df511e87230bbab92854c88e679ea Mon Sep 17 00:00:00 2001 From: Garrett Michael Flynn Date: Tue, 4 Jun 2024 17:55:48 -0700 Subject: [PATCH] Add back a filtered timezone if used (e.g. in Actions) --- src/schemas/timezone.schema.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/schemas/timezone.schema.ts b/src/schemas/timezone.schema.ts index 445a66e4c..16ed1c656 100644 --- a/src/schemas/timezone.schema.ts +++ b/src/schemas/timezone.schema.ts @@ -99,6 +99,9 @@ ready.timezones.then((timezones) => { && !tz.toLowerCase().includes('etc/') }); + if (!filteredTimezones.includes(timezone)) filteredTimezones.push(timezone) // Add the local timezone if it's not in the list + + timezoneSchema.enumLabels = filteredTimezones.reduce((acc, tz) => { const [ _, ...other ] = tz.split('/') acc[tz] = other.map(part => header(part)).join(' — ')