Fix notifications local time

This commit is contained in:
Skia 2017-03-17 18:11:14 +01:00
parent 0887fe6c9e
commit e56b2476b7
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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 %}