提交 cbd71795 编写于 作者: Y yui-knk

[ci skip] Fix minutes to seconds in `select_second`

This is same type commit of https://github.com/rails/rails/pull/20463
上级 edea7b6f
......@@ -464,7 +464,7 @@ def select_time(datetime = Time.current, options = {}, html_options = {})
# The <tt>datetime</tt> can be either a +Time+ or +DateTime+ object or an integer.
# Override the field name using the <tt>:field_name</tt> option, 'second' by default.
#
# my_time = Time.now + 16.minutes
# my_time = Time.now + 16.seconds
#
# # Generates a select field for seconds that defaults to the seconds for the time in my_time.
# select_second(my_time)
......
......@@ -724,7 +724,7 @@ Returns a select tag with options for each of the seconds 0 through 59 with the
```ruby
# Generates a select field for seconds that defaults to the seconds for the time provided
select_second(Time.now + 16.minutes)
select_second(Time.now + 16.seconds)
```
#### select_time
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册