Une time zone est mise en place dans le fichier de config principal

This commit is contained in:
echarp 2014-07-02 09:47:44 +02:00
parent 6f66432487
commit ebca7afa78
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,3 @@
-# Otherwise the simple calendar could be empty during the first hours of a new month
- Time.zone = 'Paris'
%form.region_selector
- if params[:start_date]
= hidden_field_tag :start_date, params[:start_date]

View File

@ -15,6 +15,7 @@ module AgendaDuLibreRails
# 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 = 'Paris'
# 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]