Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
fix timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyfrank committed Feb 22, 2013
1 parent 2e4176e commit a57e22e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class User < ActiveRecord::Base
:show_as_participant,
:photo, :state_event, :about

audit :email, :password, :first_name, :last_name, :city, :company, :show_as_participant, :photo, :state, :about
audit :email, :first_name, :last_name, :city, :company, :photo, :state, :about

validates :email, presence: true, uniqueness: true, email: true
validates :first_name, length: { maximum: 255 }, russian: true
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Application < Rails::Application

# 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 = 'Moscow' #'Central Time (US & Canada)'

# 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]
Expand Down

0 comments on commit a57e22e

Please sign in to comment.