From 2e66dd09e2d2db54327188ae9e393d2004c7bb95 Mon Sep 17 00:00:00 2001
From: Christian Schmidt <github@chsc.dk>
Date: Fri, 22 Nov 2024 15:48:41 +0100
Subject: [PATCH] Show default time zone (#31803)

---
 app/views/settings/preferences/appearance/show.html.haml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/views/settings/preferences/appearance/show.html.haml b/app/views/settings/preferences/appearance/show.html.haml
index 22f88c7cdd..1239b8bcd9 100644
--- a/app/views/settings/preferences/appearance/show.html.haml
+++ b/app/views/settings/preferences/appearance/show.html.haml
@@ -18,6 +18,7 @@
       = f.input :time_zone,
                 collection: ActiveSupport::TimeZone.all.map { |tz| ["(GMT#{tz.formatted_offset}) #{tz.name}", tz.tzinfo.name] },
                 hint: false,
+                selected: current_user.time_zone || Time.zone.tzinfo.name,
                 wrapper: :with_label
 
   .fields-group