vi config/initializers/time_formats.rb Time::DATE_FORMATS[:minute] = '%Y-%m-%d %H:%M' datetime.to_formatted_s(:minute)