In this PR, the option "now" is added to the default value list in the datetime field editing in the Studio module. Additionally, the internal value of the "today" item has been modified, as it was already using the value "now".
Furthermore, the variable datetime_combo_minute_interval is created to indicate the interval of minutes that will be displayed in datetime fields, in case the default value of every 15 minutes is not desired.
Additionally, the sensitivity of the minute hand of datetime fields whose default value is "now" is modified. The sensitivity is set to 1 so that the minutes are always displayed correctly.
Motivation and Context
This change is required to enhance the functionality of the datetime fields in the Studio module. It adds flexibility by allowing the option "now" and enables customization of the minute interval displayed in datetime fields.
How To Test This
Open the Studio module.
Navigate to the editing section of a datetime field.
Verify that "now" is included in the default value list.
Select "now" option and allow MassUpdate.
Go to the edit view and make sure that the minute field is now set to 1 by 1.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
[x] My code follows the code style of this project found here.
[x] My change requires a change to the documentation.
Description
In this PR, the option "now" is added to the default value list in the datetime field editing in the Studio module. Additionally, the internal value of the "today" item has been modified, as it was already using the value "now".
Furthermore, the variable
datetime_combo_minute_interval
is created to indicate the interval of minutes that will be displayed in datetime fields, in case the default value of every 15 minutes is not desired.Additionally, the sensitivity of the minute hand of datetime fields whose default value is "now" is modified. The sensitivity is set to 1 so that the minutes are always displayed correctly.
Motivation and Context
This change is required to enhance the functionality of the datetime fields in the Studio module. It adds flexibility by allowing the option "now" and enables customization of the minute interval displayed in datetime fields.
How To Test This
Types of changes
Final checklist