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

Localized submit_date in JavaScript plugin #248

Closed Loneattic closed 3 years ago

Loneattic commented 3 years ago

How can I localize the submit_date when using the JavaScript plugin?

Plugin gets the UTC date, as specified in the Django settings. Usually the date in the template adjusts itself for each user's local time. But comments display it in UTC.

danirus commented 3 years ago

Thanks for this report @Loneattic. It's a good catch!

danirus commented 3 years ago

The fix for this issue has been released with v2.8.2.