Allow the modification of Timezone text (especially in Events)

If understand right:

  • the event timezone city is only shown if Show Local Time is enabled in event settings
  • Show Local Time is disabled by default

So I gather you have users enabling Show Local Time on events, and you don’t want this.

What if you hide the Show Local Time setting so it can’t be enabled?

.event-field.show-local-time {
    display: none;
}

Then new events will at least display the time and timezone city of the user; an event created in Phoenix time will show my own local time and “Chicago.”

I don’t see a way to remove the city entirely – it’s a chunk of cooked content – and I suppose that might still be confusing. Maybe some javascript could act on text in parentheses within that selector? Best I can think of with CSS is to append an icon to encourage clicking for the timezone popup:

image

span.discourse-local-date.cooked-date::after {
    content: " ℹ️";
}