Files
fizzy/app/views/layouts/shared/_time_zone.html.erb
T
Jorge Manrubia cfa0149564 Persist timezones in the server
Add a beacon to persist timezones when these change (or the first time)
2025-09-05 12:11:57 +02:00

6 lines
250 B
Plaintext

<% if timezone_from_cookie.present? && timezone_from_cookie != Current.user.timezone %>
<%= auto_submit_form_with url: my_timezone_path, method: :put do %>
<%= hidden_field_tag :timezone_name, timezone_from_cookie.name %>
<% end %>
<% end %>