0.12.22 timezone in chat messages

This commit is contained in:
SDE
2024-02-09 18:01:11 +03:00
parent 713695cf7d
commit b87df02714
8 changed files with 36 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
{% load static %}
{% load tt_chat %}
{% load tz %}
{#{% load tz_detect %}#}
<div style="width: 100%;">
<div class="container-message_support_chat {% get_msg_side user ticket msg %}">
@@ -35,12 +36,13 @@
{% endif %}
</div>
<div class="data_send_message {% get_msg_side user ticket msg %}">
<span>{% if msg %}{{ msg.modifiedDT|localtime }}{% else %}{{ ticket.modifiedDT|localtime }}{% endif %}</span>
<span>{% if msg %}{{ msg.modifiedDT }}{% else %}{{ ticket.modifiedDT }}{% endif %}</span>
</div>
</div>
</div>
</div>
{#{% tz_detect %}#}
{#<div class="container-message_support_chat{% if msg.sender == ticket.manager %} left{% else %} right{% endif %}">#}
{# <div class="block_avatar_message">#}