vishalanandl177 / DRF-API-Logger

An API Logger for your Django Rest Framework project.
https://github.com/vishalanandl177/DRF-API-Logger
Apache License 2.0
308 stars 56 forks source link

Update chartData date value #77

Closed Protages closed 1 year ago

Protages commented 1 year ago

I noticed that if in the file settings.py LANGUAGE_CODE = 'ru' then the table "Number of API calls" cannot display statistics because JS cannot convert the date (Invalid Date). The solution is to explicitly specify .isoformat ("date": "{{ item.added_on__date.isoformat }}"), then everything works.