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.
2 parents 2110894 + 084df8a commit 0726348Copy full SHA for 0726348
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