vishalanandl177 / DRF-API-Logger

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

The "Number of API calls" table does not work with LANGUAGE_CODE='ru' #76

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. https://github.com/vishalanandl177/DRF-API-Logger/pull/77