mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-15 05:39:33 +00:00
Fix notifications local time
This commit is contained in:
1 parent
0887fe6c9e
commit
e56b2476b7
2 files changed
+4
-4
No files matched your search
@@ -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 %}
|
||||||
|
|||||||
Reference in new issue
Block a user