Changes between Version 6 and Version 7 of Ticket #29724, comment 9
- Timestamp:
- Sep 3, 2019, 5:23:48 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29724, comment 9
v6 v7 16 16 days = dates_or_datetimes 17 17 if isinstance(dates_or_datetimes[0], datetime.datetime) and settings.USE_TZ: 18 day_list = []19 18 days = [] 20 19 for day in dates_or_datetimes: 21 if make_naive(day).day not in day_list: 22 day_list.append(make_naive(day).day) 23 days.append(make_naive(day)) 20 if make_naive(day).date() not in days: days.append(make_naive(day).date()) 24 21 25 22 }}}