0.12.22 timezone in chat messages
This commit is contained in:
@@ -134,6 +134,14 @@
|
||||
|
||||
{% include 'blocks/b_footer.html' %}
|
||||
|
||||
<script>
|
||||
let tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
if (!tz) {
|
||||
tz = "UTC"
|
||||
}
|
||||
document.cookie = "user_tz=" + tz + ";path=/";
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
@@ -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">#}
|
||||
|
||||
Reference in New Issue
Block a user