Auto-Update Your Rails App User's Time zone
If your rails app depends your user’s time zone being set, it is important to keep it up-to-date. they might travel, making their previous set time zone incorrect. this stimulus-only controller will either auto-update the time zone, or ask, via an confirm dialog, to confirm to update their time zone.
-
Simple
Get this componentUpon confirm, a PUT-request to a specified endpoint is made. Optionally this can be done done automatically.
JavaScript is disabled for this preview