Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError - can't compare offset-naive and offset-aware datetimes #33

Open
stilet opened this issue Oct 29, 2019 · 1 comment
Open

TypeError - can't compare offset-naive and offset-aware datetimes #33

stilet opened this issue Oct 29, 2019 · 1 comment

Comments

@stilet
Copy link

stilet commented Oct 29, 2019

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

@stilet
Copy link
Author

stilet commented Oct 29, 2019

USE_TZ = False in settings removes the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant