django-swingtime
django-swingtime copied to clipboard
TypeError - can't compare offset-naive and offset-aware datetimes
TypeError at /swingtime/
can't compare offset-naive and offset-aware datetimes
when adding to an event Occurrence
swingtime/utils.py in create_timeslot_table
if item.end_time <= dtstart:
| css_class_cycles | <function css_class_cycler at 0x7f68f68dbae8> |
|---|---|
| dt | datetime.datetime(2019, 10, 29, 16, 42, 2, 462483) |
| dtend | datetime.datetime(2019, 10, 29, 20, 30) |
| dtstart | datetime.datetime(2019, 10, 29, 14, 0) |
| end_time_delta | datetime.timedelta(0, 23400) |
| item | <Occurrence: SZV-M: 2019-10-29T13:41:52+00:00> |
| items | <QuerySet [<Occurrence: SZV-M: 2019-10-29T13:41:52+00:00>]> |
| min_columns | 4 |
| n | datetime.datetime(2019, 10, 29, 20, 45) |
| proxy_class | <class 'swingtime.utils.DefaultOccurrenceProxy'> |
| start_time | datetime.time(14, 0) |
| time_delta | datetime.timedelta(0, 900) |
url - calendar/2019/10/29/ day view
USE_TZ = False in settings removes the error