Preparations
- login to Admin Console
- go to Custom → Widgets section
- add some records
Part 1 (date field change)
- login to Admin Console
- go to Custom → Widgets section
- use Export button on toolbar to export all grid data
- confirm, that CSV file was sent back to user and it contains all data shown in grid
- open downloaded CSV file
- change values in all columns but ID and Image into another valid values
- use Import button in grid to import back changed file
- confirm, that all changes made in CSV file as shown in grid
Part 2 (date and time field change)
- go to IDE
- open /modules/custom/units/widgets/widgets_config.php file for editing
- in the CreatedOn field declaration comment out lines that change format and input_format field options
- login to Admin Console
- go to Custom → Widgets section
- use Export button on toolbar to export all grid data
- confirm, that CSV file was sent back to user and it contains all data shown in grid
- open downloaded CSV file
- change values in all columns but ID and Image into another valid values
- use Import button in grid to import back changed file
- confirm, that all changes made in CSV file as shown in grid
Part 3 (grid format override)
- go to IDE
- open /modules/custom/units/widgets/widgets_config.php file for editing
- in the CreatedOn field declaration comment out lines that change format and input_format field options
- in the CreatedOn column declaration in grid add format option with Y-m-d H:i:s value
- login to Admin Console
- go to Custom → Widgets section
- confirm, that date in CreatedOn column is displayed using format specified before
- use Export button on toolbar to export all grid data
- confirm, that CSV file was sent back to user and it contains all data shown in grid + value for CreatedOn column is formatted the same as in grid
- open downloaded CSV file
- change values in all columns but ID and Image into another valid values
- use Import button in grid to import back changed file
- confirm, that all changes made in CSV file as shown in grid