Set application timezone in ENV

This commit is contained in:
James Mason 2018-09-21 17:37:29 -07:00 committed by Henne Vogelsang
parent ed6b2d8c93
commit 84d60f4f3e
2 changed files with 4 additions and 1 deletions

View file

@ -29,7 +29,7 @@ module Osem
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
config.time_zone = (ENV['OSEM_TIME_ZONE'] || 'UTC')
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]

View file

@ -30,6 +30,9 @@
# The ruby version to use
# OSEM_RUBY_VERSION=2.5.0
# What time is it?
# OSEM_TIME_ZONE="UTC"
# The name of your OSEM installation
# OSEM_NAME=OSEM