datatracker icon indicating copy to clipboard operation
datatracker copied to clipboard

Represent deadlines / expiration dates as datetimes

Open jennifer-richards opened this issue 2 years ago • 0 comments

Description

As a moderate complexity but wide scoped refactoring, places where dates are used to represent deadlines / expiration dates and the like should be replaced with datetimes. Using a bare date means the timezone is ambiguous and relies on keeping the database and code synchronized.

Replacing the date with midnight in the intended timezone should have the same effect, so migration should be straightforward.

This includes scraping the code for places where we're using date_today, replacing DateField with DateTimeField, updating code and form handling where these dates are set, and adjusting how they are displayed and used in comparisons.

Code of Conduct

jennifer-richards avatar Oct 25 '22 14:10 jennifer-richards