compute timezone offset from difference between requested_at and server local time

This commit is contained in:
Dylan Knutson
2025-07-09 21:48:23 +00:00
parent 878cef79a6
commit 7f57d4363f
28 changed files with 6005 additions and 161 deletions

View File

@@ -9,6 +9,7 @@ Rails.application.configure do
# it changes. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
config.action_view.cache_template_loading = true
# Do not eager load code on boot.
config.eager_load = false

View File

@@ -1,6 +1,6 @@
# typed: strict
Rails.application.routes.draw do
ID_CONSTRAINT = T.let(%r{([^/]+)}, Regexp)
id_constraint = T.let(%r{([^/]+)}, Regexp)
mount ActionCable.server => "/cable"
@@ -26,7 +26,7 @@ Rails.application.routes.draw do
as: :domain_users,
only: %i[show],
constraints: {
id: ID_CONSTRAINT,
id: id_constraint,
},
controller: "domain/users" do
get :search_by_name, on: :collection
@@ -79,7 +79,7 @@ Rails.application.routes.draw do
controller: "domain/users",
path: "",
constraints: {
id: ID_CONSTRAINT,
id: id_constraint,
} do
get :faved_by, on: :collection, action: :users_faving_post
end