Persist timezones in the server

Add a beacon to persist timezones when these change (or the first time)
This commit is contained in:
Jorge Manrubia
2025-09-05 12:11:47 +02:00
parent 3b500a5bf6
commit cfa0149564
11 changed files with 59 additions and 3 deletions
@@ -0,0 +1,15 @@
require "test_helper"
class My::TimezonesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "update" do
time_zone = ActiveSupport::TimeZone["America/New_York"]
assert_not_equal time_zone, users(:kevin).timezone
patch my_timezone_path, params: { timezone_name: "America/New_York" }
assert_equal time_zone, users(:kevin).reload.timezone
end
end