You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for date fields, that will usually be a DateField or DateTimeField which by default honors DATE_INPUT_FORMATS or DATETIME_INPUT_FORMATS and those do not support utc by default. you can add iso format there to add iso support
I am trying to query datetime, but have not been able to get it to work using iso datetime format:
api/meas/?timestamp__lte=2019-06-20T15:20:30×tamp__gte=2019-05-12T15:20:30
Will return no data.
However, it will work if I take the T out:
api/meas/?timestamp__lte=2019-06-20 15:20:30×tamp__gte=2019-05-12 15:20:30
which will convert it to:
api/meas/?timestamp__lte=2019-06-20%2015:20:30×tamp__gte=2019-05-12%2015:20:30
It returns the expected data.
Is there a setting, to enable it to use iso datetime format?
Thanks
Jim
The text was updated successfully, but these errors were encountered: