Posts Rails – disable timezone conversions
Post
Cancel

Rails – disable timezone conversions

In order to globally disable the use of TimeZone conversions for your (legacy?) application – here’s the proper configurations:

In config/application.rb (or config/environment.rb depending on Rails version):

1
2
3
    config.time_zone = 'Mountain Time (US & Canada)' #uncommented and set to proper zone
    config.active_record.default_timezone = :local
    config.active_record.time_zone_aware_attributes = false

Contents

Search Results