spec/rails_helper.rb in normalizy-0.1.0 vs spec/rails_helper.rb in normalizy-0.2.0

- old
+ new

@@ -5,5 +5,9 @@ require 'active_record/railtie' require 'normalizy' require 'pry-byebug' Dir[File.expand_path('support/**/*.rb', __dir__)].each { |file| require file } + +def offset_in_hours(time_zone) + TZInfo::Timezone.get(time_zone).current_period.offset.utc_total_offset.to_f / 3600.0 +end