class datetime.date(year, month, day)
which was attempting to generate "today, one year ago" by reusing the current month and day, but replacing the year with year-1.
class datetime.date(year, month, day)
which was attempting to generate "today, one year ago" by reusing the current month and day, but replacing the year with year-1.