Skip to content

Commit

Permalink
Add back a filtered timezone if used (e.g. in Actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Jun 5, 2024
1 parent 857a176 commit 3793a71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/schemas/timezone.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(' — ')
Expand Down

0 comments on commit 3793a71

Please sign in to comment.