Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loaddata: Fix random_datetime() edge case
Instead of generating month and day separately, generate them at the same time by randomly selecting a day in the year, and then calculating the month and date based on that. This should avoid randomly generating invalid dates like February 30th. Fixes freedomofpress#7155.
- Loading branch information