Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix default hour format

  • Loading branch information...
commit 316a7993fb52bb62c384166a48737843e944fc6c 1 parent 19335cc
@angelic authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 config/application.rb
View
6 config/application.rb
@@ -32,9 +32,9 @@ class Application < Rails::Application
# 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]
# config.i18n.default_locale = :de
- my_date_formats = { :default => '%m-%d-%Y' }
- Time::DATE_FORMATS.merge!(my_date_formats)
- Date::DATE_FORMATS.merge!(my_date_formats)
+ my_date_formats =
+ Time::DATE_FORMATS.merge!({ :default => '%H:%M' })
+ Date::DATE_FORMATS.merge!({ :default => '%m-%d-%Y' })
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
Please sign in to comment.
Something went wrong with that request. Please try again.