How can I get the utc offset in Rails?
require 'time'
p Time.zone_offset('EST') #=> -18000 #(-5*60*60)
If you need to take daylight savings time into account, you can use something like this:
Time.now.in_time_zone('America/New_York').utc_offset