From ebca7afa7857530a71fed1655171a048802e5827 Mon Sep 17 00:00:00 2001 From: echarp Date: Wed, 2 Jul 2014 09:47:44 +0200 Subject: [PATCH] Une time zone est mise en place dans le fichier de config principal --- app/views/events/index.html.haml | 3 --- config/application.rb | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/events/index.html.haml b/app/views/events/index.html.haml index 74e36210..067e65ac 100644 --- a/app/views/events/index.html.haml +++ b/app/views/events/index.html.haml @@ -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] diff --git a/config/application.rb b/config/application.rb index 5873aa9c..e2ec89ed 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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]