activeadmin-plugins / active_admin_datetimepicker

:calendar: active_admin_datetimepicker gem
MIT License
72 stars 48 forks source link

active_admin_datetimepicker submitted value attributes bug in commit e522459 #54

Closed Cusp2356 closed 5 years ago

Cusp2356 commented 5 years ago

Commit e522459 - improve_input_html_options (#53), breaks datetimepicker functionality when an ActiveAdmin form is submitted. Hours and minutes are cut off the submitted value attributes, and the lteq value attribute is overwritten with the submitted gteq value attribute.

workgena commented 5 years ago

The bug is reproduce-able even on earlier version. Working on a hotfix.

workgena commented 5 years ago

Version 0.7.2 released to the RubyGems. It should fix the issue.

Please notice that H:M works correctly only if column in database is t.datetime or t.timestamp(s)