gwu-libraries / TweetSets

Service for creating Twitter datasets for research and archiving.
MIT License
25 stars 2 forks source link

Created at From and To dates can have invalid dates submitted #87

Closed lwrubel closed 3 years ago

lwrubel commented 3 years ago

It is currently possible to manually enter dates in the Created at From and To fields in a YYYY-DD-MM format instead of the required YYYY-MM-DD format (which the calendar correctly generates). This causes a 500 error. There is no help text showing the required format.

It should not be possible to submit dates that are clearly invalid. It's not possible to catch valid dates which are not what the user intended, however. We should also have help text to show the required format. Another approach is to require usage of the calendar widget and not allow manual entry.

lwrubel commented 3 years ago

Fixed with #144.