Added second date input, "End Date" to "New Announcement" (Check Fixes for name change) form. The user can now choose a start date and an end date , which will be saved alonside their announcement. The query will find anything the matches the current date, including recurring dates.
Fixes
Changed "Add Announcement" to "New Announcement". Changed all functions, variables, and comments to reflect this change. The updated subdomain is /new.
Changed "Add Category" to "New Category". Changed all functions, variables, and comments to reflect this change. The updated subdomain is /category/new.
Updated test scripts to better reflect the purpose of them.
Many dates were reformatted to work better with changes, as opposed to being static.
Dates methods were modified to reflect changes of start_date and end_date.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
Description
Added second date input, "End Date" to "New Announcement" (Check Fixes for name change) form. The user can now choose a start date and an end date , which will be saved alonside their announcement. The query will find anything the matches the current date, including recurring dates.
Fixes
Changed "Add Announcement" to "New Announcement". Changed all functions, variables, and comments to reflect this change. The updated subdomain is /new.
Changed "Add Category" to "New Category". Changed all functions, variables, and comments to reflect this change. The updated subdomain is /category/new.
Updated test scripts to better reflect the purpose of them. Many dates were reformatted to work better with changes, as opposed to being static. Dates methods were modified to reflect changes of start_date and end_date.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Checklist: