django-scheduler icon indicating copy to clipboard operation
django-scheduler copied to clipboard

fullcalendar v3 api call problems

Open wyyang opened this issue 6 years ago • 2 comments

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.

wyyang avatar Mar 15 '18 03:03 wyyang

probably related to #415

mikekeda avatar Mar 20 '18 17:03 mikekeda

This is also related to #359. This absolutely solved my problem there. 👍

krutaw avatar Mar 21 '18 04:03 krutaw