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

@@ -3,12 +3,17 @@
# This file loads Spring without loading other gems in the Gemfile in order to be fast.
# It gets overwritten when you run the `spring binstub` command.
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"])
if !defined?(Spring) &&
[nil, "development", "test", "staging"].include?(ENV["RAILS_ENV"])
require "bundler"
Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring|
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem "spring", spring.version
require "spring/binstub"
end
Bundler
.locked_gems
.specs
.find { |spec| spec.name == "spring" }
&.tap do |spring|
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem "spring", spring.version
require "spring/binstub"
end
end