Skip to content

Commit

Permalink
format date from language
Browse files Browse the repository at this point in the history
  • Loading branch information
aottr committed Mar 25, 2024
1 parent cd8e0e1 commit 1d91608
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion paw/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django import get_version

VERSION = (0, 5, 6, "final", 0)
VERSION = (0, 5, 7, "final", 0)

__version__ = get_version(VERSION)
6 changes: 3 additions & 3 deletions paw/templates/ticketing/ticket_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1 class="text-xl font-bold my-4">{% trans 'Activity' %}</h1>
</div>
<div class="chat-header">
{{ comment.user.username }}
<time class="text-xs opacity-50">{{ comment.created_at|date:"d.m.y" }}</time>
<time class="text-xs opacity-50">{{ comment.created_at|date:"SHORT_DATE_FORMAT" }}</time>
</div>
<div class="chat-bubble {% if comment.is_only_for_staff %}bg-base-300 text-base-content{% endif %} whitespace-pre-line">{{ comment.text }}</div>
{% if comment.is_only_for_staff %}
Expand Down Expand Up @@ -140,11 +140,11 @@ <h1 class="text-xl font-bold">Ticket #{{ ticket.id }}</h1>
</div>
<div class="my-4 text-base-content/85 flex items-center text-sm font-semibold">
<svg xmlns="http://www.w3.org/2000/svg" class="mr-2 w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" /><path d="M16 3l0 4" /><path d="M8 3l0 4" /><path d="M4 11l16 0" /><path d="M8 15h2v2h-2z" /></svg>
{% trans 'Created on' %} {{ ticket.created_at }}
{% trans 'Created on' %} {{ ticket.created_at|date:"SHORT_DATETIME_FORMAT" }}
</div>
<div class="text-base-content/85 flex items-center text-sm font-semibold">
<svg xmlns="http://www.w3.org/2000/svg" class="mr-2 w-6 h-6" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" /><path d="M16 3l0 4" /><path d="M8 3l0 4" /><path d="M4 11l16 0" /><path d="M8 15h2v2h-2z" /></svg>
{% trans 'Last updated' %} {{ ticket.updated_at }}
{% trans 'Last updated' %} {{ ticket.updated_at|date:"SHORT_DATETIME_FORMAT" }}
</div>

<h2 class="font-semibold text-xs mt-4 mb-2">{% trans 'Contact' %}</h2>
Expand Down
2 changes: 1 addition & 1 deletion paw/templates/ticketing/tickets_history.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1 class="flex items-center text-2xl text-base-content font-bold mb-4">{% trans
{% endif %}
</div>
</td>
<td>{{ ticket.updated_at|date:"d.m.Y H:m" }}</td>
<td>{{ ticket.updated_at|date:"SHORT_DATETIME_FORMAT" }}</td>
<td class="flex justify-end"><a href="{% url 'ticket_detail' ticket.id %}" class="btn btn-xs btn-accent">{% trans 'View' %}</a></td>
</tr>
{% endfor %}
Expand Down

0 comments on commit 1d91608

Please sign in to comment.