Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some dates (publication dates, author dates) are meant as literals. What
the user inputs through a
SelectDateWidget
should be preserved as-is.Django's otherwise-excelent support for timezones interferes with it (see
#3028).
Until a better fate of these columns is determined (do we migrate them to a
DateField?), and as a stop-gap measure, we can start being faithful to the
data by storing them in the Western-most timezone.
This is particularly important because
1/1/YYYY
is a common pattern inpublication dates, given #743.
Fixes: #3028.
#3028 is somewhat intertwined with #743, because both work with the same columns. In general, I try to structure work in chunks that do something small and can be meaningfully applied.
With no need for a migration, I think this is a net win wrt the "shifting year" issue that was recently reported.
Furthermore, I believe in the future we might be able to deduce the correct tz conversions to apply. With this PR, I just offer a small tuning to affect/fix observable behavior.
Many thanks in advance for any reviews!