kopia lustrzana https://github.com/OpenDroneMap/WebODM
Added timezone fixes
rodzic
5146b69cf0
commit
f290cfeb5a
|
@ -1,5 +1,5 @@
|
||||||
{% extends "app/logged_in_base.html" %}
|
{% extends "app/logged_in_base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n tz %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>Processing Node</h3>
|
<h3>Processing Node</h3>
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Last Refreshed" %}</td>
|
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{% trans "Options (JSON)" %}</td>
|
<td>{% trans "Options (JSON)" %}</td>
|
||||||
|
|
|
@ -115,7 +115,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
||||||
# https://docs.djangoproject.com/en/1.10/topics/i18n/
|
# https://docs.djangoproject.com/en/1.10/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'en-us'
|
||||||
TIME_ZONE = 'UTC'
|
TIME_ZONE = None # Use local server time
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
USE_L10N = True
|
USE_L10N = True
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
Ładowanie…
Reference in New Issue