Changes between Version 6 and Version 7 of Ticket #29724, comment 9


Ignore:
Timestamp:
Sep 3, 2019, 5:23:48 PM (5 years ago)
Author:
yab

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29724, comment 9

    v6 v7  
    1616                        days = dates_or_datetimes
    1717                        if isinstance(dates_or_datetimes[0], datetime.datetime) and settings.USE_TZ:
    18                                 day_list = []
    1918                                days = []
    2019                                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())
    2421                       
    2522}}}
Back to Top