Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

add timezone in rails

# application.rb
config.time_zone = 'Eastern Time (US & Canada)'
config.active_record.default_timezone = :local

rake time:zones:all
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #timezone #rails
ADD COMMENT
Topic
Name
9+7 =