Skip to content

Commit 8c69e2c

Browse files
committed
Update README.md
1 parent 16f2d40 commit 8c69e2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ end
4949
```ruby
5050
# This if for front-end javascript side
5151
ActiveAdminDatetimepicker::Base.default_datetime_picker_options = {
52-
format: 'Y-m-d H:i:s',
53-
defaultDate: proc { DateTime.now.utc.strftime('%y-%m-%d') }
52+
defaultDate: proc { Time.current.strftime("%Y-%m-%d 00:00") }
5453
}
5554
# This if for backend(Ruby)
5655
ActiveAdminDatetimepicker::Base.format = "%Y-%m-%d %H:%M:%S"

0 commit comments

Comments
 (0)