Added new format and field option processing
in kDateFormatter::Format method.
Added new format usage in the inp_edit_date_time block in the adm.console.
Details
Details
Part 1 - regression testing
- go to Configuration → Website → Scheduled Tasks section
- click on "Add" button
- confirm that form opens and "Next Run On" field is empty
- click on date picker icon
- confirm that picker opens and contains current date and time
- pick some date
- confirm that picker closes and chosen date placed in the input field
- click on date picker icon
- confirm that picker opens and contains previously picked date and time
- save changes
- open added scheduled task for editing
- confirm, that previously entered date is displayed
- open date picker
- confirm, that entered previously date is displayed in date picker
Part 2 - new ability testing - repeat with relative value like 'midnight' and with exact time like '12/31/2015' as picker_default option value
- edit scheduled_tasks_config.php file - add 'picker_default' => 'midnight' option to the NextRunOn field configuration
- go to Configuration → Website → Scheduled Tasks section
- click on "Add" button
- confirm that form opens and "Next Run On" field is empty
- click on date picker icon
- confirm that picker opens and contains current date, but midnight time
- pick some date
- confirm that picker closes and chosen date placed in the input field
- click on date picker icon
- confirm that picker opens and contains previously picked date and time
- save changes
- open added scheduled task for editing
- confirm, that previously entered date is displayed
- open date picker
- confirm, that entered previously date is displayed in date picker
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.3.x
- Lint
Lint Errors Excuse: Change of method declaration is not part of this task. Severity Location Code Message Error core/kernel/utility/formatters/date_formatter.php:242 PHPCS.E.CodingStandard.Commenting.FunctionComment.TypeHintMissing CodingStandard.Commenting.FunctionComment.TypeHintMissing - Unit
No Unit Test Coverage - Build Status
Buildable 337 Build 337: arc lint + arc unit