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 16f2d40 commit 8c69e2cCopy full SHA for 8c69e2c
README.md
@@ -49,8 +49,7 @@ end
49
```ruby
50
# This if for front-end javascript side
51
ActiveAdminDatetimepicker::Base.default_datetime_picker_options = {
52
- format: 'Y-m-d H:i:s',
53
- defaultDate: proc { DateTime.now.utc.strftime('%y-%m-%d') }
+ defaultDate: proc { Time.current.strftime("%Y-%m-%d 00:00") }
54
}
55
# This if for backend(Ruby)
56
ActiveAdminDatetimepicker::Base.format = "%Y-%m-%d %H:%M:%S"
0 commit comments