danirus / django-comments-xtd

A pluggable Django comments application with thread support, follow-up notifications, mail confirmation, like/dislike flags, moderation, a ReactJS plugin and Bootstrap 5.3.
https://django-comments-xtd.readthedocs.io
BSD 2-Clause "Simplified" License
594 stars 158 forks source link

Closes #248, API must return submit_date in timezone when enabled. #261

Closed danirus closed 3 years ago

danirus commented 3 years ago

In this PR the serializer ReadCommentSerializer has been modified to return the submit_date corresponding to the timezone active in the settings. When USE_TZ is not active submit_date will be UTC based.