Private
Public Access
1
0

added timezone to workout model

This commit is contained in:
Sander Roosendaal
2017-09-03 14:47:20 +02:00
parent bd46c5bcd7
commit df9806a200
3 changed files with 49 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
{% load staticfiles %}
{% load rowerfilters %}
{% load tz %}
{% get_current_timezone as TIME_ZONE %}
{% block title %}Change Workout {% endblock %}
@@ -42,11 +43,11 @@
</p>
</div>
</div>
{% localtime on %}
<table width=100%>
<tr>
<th>Date/Time:</th><td>{{ workout.startdatetime }}</td>
{% localtime on %}
<th>Date/Time:</th><td>{{ workout.startdatetime|localtime}}</td>
{% endlocaltime %}
</tr><tr>
<th>Distance:</th><td>{{ workout.distance }}m</td>
</tr><tr>
@@ -69,7 +70,6 @@
<td>
</tr>
</table>
{% endlocaltime %}
<form enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}