Change the settings to avoid using Session authentication for rest framework as it raise exceptions in case client and backend are on the same domain
On the filter, adapt to take into account new version of django_filters
import moment from 'moment'
export const defaultDateTimeformat = "YYYY-MM-DDTHH:mm:ss.SSSZ";
export const formatTimestamp = (ts) => {
return moment(ts).local().format('H:mm:ss');
}
export const now = () => {
return moment.utc().format(defaultDateTimeformat);
}