mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
Fix notifications local time
This commit is contained in:
parent
0887fe6c9e
commit
e56b2476b7
@ -54,8 +54,8 @@
|
|||||||
<ul id="notif">
|
<ul id="notif">
|
||||||
{% for n in user.notifications.filter(viewed=False).order_by('-id') %}
|
{% for n in user.notifications.filter(viewed=False).order_by('-id') %}
|
||||||
<li><a href="{{ url("core:notification", notif_id=n.id) }}">
|
<li><a href="{{ url("core:notification", notif_id=n.id) }}">
|
||||||
<span style="font-size: small; ">{{ n.date|date(DATE_FORMAT) }} {{
|
<span style="font-size: small; ">{{ n.date|localtime|date(DATE_FORMAT) }} {{
|
||||||
n.date|time(DATETIME_FORMAT) }}</span><br>
|
n.date|localtime|time(DATETIME_FORMAT) }}</span><br>
|
||||||
{{ n }}</a></li>
|
{{ n }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li><a href="{{ url('core:notification_list') }}">{% trans %}View more{% endtrans %}</a>
|
<li><a href="{{ url('core:notification_list') }}">{% trans %}View more{% endtrans %}</a>
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
<li style="background: lightgrey;">
|
<li style="background: lightgrey;">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ url("core:notification", notif_id=n.id) }}">
|
<a href="{{ url("core:notification", notif_id=n.id) }}">
|
||||||
<span style="font-size: small; ">{{ n.date|date(DATE_FORMAT) }} {{
|
<span style="font-size: small; ">{{ n.date|localtime|date(DATE_FORMAT) }} {{
|
||||||
n.date|time(DATETIME_FORMAT) }}</span><br>
|
n.date|localtime|time(DATETIME_FORMAT) }}</span><br>
|
||||||
{{ n }}</a>
|
{{ n }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user