OroPlatform: how to override datetimepicker js widget

Viewed 78

Context

I have a datetime attribute on an entity on my OroPlatform project. It is displayed correctly in the form:

enter image description here

Issue

Let's imagine the current time is 7pm. If I click on the "Today" button, the time field is filled with 7pm20 value instead of 7pm.

I have found that it came from the method getDefaultTime in the public/bundles/oroui/js/app/views/datepicker/datetimepicker-view-mixin.js file.

So, if I change the method in the original file and run the command symfony console oro:assets:build it works as expected.

But I can't find in the Oro documentation the proper way to "override" a method of a js component.

1 Answers
Related