django-scheduler
django-scheduler copied to clipboard
fullcalendar v3 api call problems
In _api_occurrences
# version 2 of full calendar
# TODO: improve this code with date util package
if '-' in start:
def convert(ddatetime):
if ddatetime:
ddatetime = ddatetime.split(' ')[0]
It's looking for date and time separated by space. In fullcalendar v3, it's sending queries like start=2018-03-14T00%3A00%3A00-07%3A00&end=2018-03-15T00%3A00%3A00-07%3A00&_=1521084740894, where date and time are separated by 'T', causing a 400 error.
I wonder if a simple change can be made like
ddatetime = ddatetime.replace('T', ' ').split(' ')[0]
and have a 0.8.6a release. I can't use python 3 right now and thus no Django 2.0 that's required by 0.8.7.
probably related to #415
This is also related to #359. This absolutely solved my problem there. 👍