Skip to content

Commit

Permalink
Changed the environment to reflect correct date format
Browse files Browse the repository at this point in the history
  • Loading branch information
deployer committed Sep 9, 2010
1 parent 01c802b commit b91cd92
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@
sendmail_config = YAML.load_file(RAILS_ROOT + "/config/mail.yml")
config.action_mailer.sendmail_settings = sendmail_config['settings']
end


ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!({
:default => '%m/%d/%Y %H:%M:%S',
:date_time12 => "%m/%d/%Y %I:%M%p",
:date_time24 => "%m/%d/%Y %I:%M%p"
})

0 comments on commit b91cd92

Please sign in to comment.