1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #1283: Added a time zone field to the site model

This commit is contained in:
Jeremy Stretch
2017-12-19 17:24:14 -05:00
parent 9984238f2a
commit b20258c66e
10 changed files with 83 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
{% extends '_base.html' %}
{% load static from staticfiles %}
{% load tz %}
{% load helpers %}
{% block content %}
@@ -105,6 +106,17 @@
{% endif %}
</td>
</tr>
<tr>
<td>Time Zone</td>
<td>
{% if site.time_zone %}
{{ site.time_zone }} (UTC {{ site.time_zone|tzoffset }})<br />
<small class="text-muted">Site time: {% timezone site.time_zone %}{% now "SHORT_DATETIME_FORMAT" %}{% endtimezone %}</small>
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
</tr>
</table>
</div>
<div class="panel panel-default">