Added timezone fixes

pull/23/head
Piero Toffanin 2016-09-29 15:57:24 -04:00
rodzic 5146b69cf0
commit f290cfeb5a
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
{% extends "app/logged_in_base.html" %}
{% load i18n %}
{% load i18n tz %}
{% block content %}
<h3>Processing Node</h3>
@ -22,7 +22,7 @@
</tr>
<tr>
<td>{% trans "Last Refreshed" %}</td>
<td>{{ processing_node.last_refreshed }}</td> <!-- TODO: timezone? -->
<td>{{ processing_node.last_refreshed|timesince }} {% trans 'ago' %} ({{ processing_node.last_refreshed|localtime }})</td> <!-- TODO: timezone? -->
</tr>
<tr>
<td>{% trans "Options (JSON)" %}</td>

Wyświetl plik

@ -115,7 +115,7 @@ AUTH_PASSWORD_VALIDATORS = [
# https://docs.djangoproject.com/en/1.10/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
TIME_ZONE = None # Use local server time
USE_I18N = True
USE_L10N = True
USE_TZ = True