Commit e56b2476 authored by Skia's avatar Skia

Fix notifications local time

parent 0887fe6c
Pipeline #808 passed with stage
in 4 minutes and 46 seconds
...@@ -54,8 +54,8 @@ ...@@ -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 @@ ...@@ -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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment