From cd15412e5abd7c6b3e99359ff3b6c44066621814 Mon Sep 17 00:00:00 2001 From: nathanallen Date: Wed, 19 Aug 2020 16:35:42 -0700 Subject: [PATCH] fix documented default values for datetime_select view helper --- actionview/lib/action_view/helpers/date_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index 3d04f47286..e553cf55ba 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -197,8 +197,8 @@ def time_ago_in_words(from_time, options = {}) # and +:name+ (string). A format string would be something like "%{name} (%02d)" for example. # See Kernel.sprintf for documentation on format sequences. # * :date_separator - Specifies a string to separate the date fields. Default is "" (i.e. nothing). - # * :time_separator - Specifies a string to separate the time fields. Default is "" (i.e. nothing). - # * :datetime_separator- Specifies a string to separate the date and time fields. Default is "" (i.e. nothing). + # * :time_separator - Specifies a string to separate the time fields. Default is " : ". + # * :datetime_separator- Specifies a string to separate the date and time fields. Default is " — ". # * :start_year - Set the start year for the year select. Default is Date.today.year - 5 if # you are creating new record. While editing existing record, :start_year defaults to # the current selected year minus 5. -- GitLab