0.12.24 timezone in chat messages

This commit is contained in:
SDE
2024-02-09 20:33:04 +03:00
parent a3ba6bc783
commit 3971a8ee23
10 changed files with 56 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
{% load static %}
{% load tz %}
{#{% include "widgets/w_file.html" %}#}
{% if not messages and ticket %}
@@ -8,7 +8,9 @@
{% for msg in messages %}
{% include "widgets/w_message.html" %}
{% if forloop.first %}
<span style="display: none" class="date_n_time_last_message" data-modifiedDT="{{ msg.modifiedDT|date:"d.m.Y H:i:s:u" }}"></span>
{% timezone user_tz %}
<span style="display: none" class="date_n_time_last_message" data-modifiedDT="{{ msg.modifiedDT|date:"d.m.Y H:i:s:u" }}"></span>
{% endtimezone %}
{% endif %}
{% endfor %}
{% endif %}