We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d36e93 commit 084df8aCopy full SHA for 084df8a
lib/active_admin_datetimepicker/base.rb
@@ -28,7 +28,7 @@ def input_html_options(input_name = nil)
28
29
def input_value(input_name = nil)
30
val = object.public_send(input_name || method)
31
- return DateTime.new(val.year, val.month, val.day, val.hour, val.min).strftime(format) if val.is_a?(Time)
+ return DateTime.new(val.year, val.month, val.day, val.hour, val.min, val.sec).strftime(format) if val.is_a?(Time)
32
val.to_s
33
end
34
0 commit comments