ruby - ActiveRecord timezone without rails -


i using activerecord in non-rails project. in rails can do:

 config.time_zone = 'eastern time (us & canada)'  config.active_record.default_timezone = 'eastern time (us & canada)' 

but if not using rails, how can set timezone?

activerecord::base.default_timezone = 'eastern time (us & canada)' 

Comments