{#if $user.timezone}
This will show up on your profile like this:
-
- {currentTime} (UTC{displayTimezone})
+ {#if validTimezones.some((zone) => zone === $user.timezone)}
+
+ {currentTime} (UTC{displayTimezone})
+ {:else}
+ not a valid timezone
+ {/if}
{/if}