Merge pull request #202 from metaodi/local-time-display

Fix name of class to enable automatic conversion of datetimes
This commit is contained in:
David Read 2015-11-27 10:22:54 +00:00
commit 154a3f42cd
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ Example:
<tr> <tr>
<th>{{ _('Created') }}</th> <th>{{ _('Created') }}</th>
<td> <td>
<span class="datetime" data-datetime="{{ h.render_datetime(job.created, date_format='%Y-%m-%dT%H:%M:%S%z') }}"> <span class="automatic-local-datetime" data-datetime="{{ h.render_datetime(job.created, date_format='%Y-%m-%dT%H:%M:%S%z') }}">
{{ h.render_datetime(job.created, with_hours=True) }} {{ h.render_datetime(job.created, with_hours=True) }}
</span> </span>
</td> </td>
@ -59,7 +59,7 @@ Example:
<tr> <tr>
<th>{{ _('Started') }}</th> <th>{{ _('Started') }}</th>
<td> <td>
<span class="datetime" data-datetime="{{ h.render_datetime(job.gather_started, date_format='%Y-%m-%dT%H:%M:%S%z') }}"> <span class="automatic-local-datetime" data-datetime="{{ h.render_datetime(job.gather_started, date_format='%Y-%m-%dT%H:%M:%S%z') }}">
{{ h.render_datetime(job.gather_started, with_hours=True) }} {{ h.render_datetime(job.gather_started, with_hours=True) }}
</span> </span>
</td> </td>
@ -67,7 +67,7 @@ Example:
<tr> <tr>
<th>{{ _('Finished') }}</th> <th>{{ _('Finished') }}</th>
<td> <td>
<span class="datetime" data-datetime="{{ h.render_datetime(job.finished, date_format='%Y-%m-%dT%H:%M:%S%z') }}"> <span class="automatic-local-datetime" data-datetime="{{ h.render_datetime(job.finished, date_format='%Y-%m-%dT%H:%M:%S%z') }}">
{{ h.render_datetime(job.finished, with_hours=True) }} {{ h.render_datetime(job.finished, with_hours=True) }}
</span> </span>
</td> </td>

View File

@ -26,12 +26,12 @@
</h3> </h3>
<p> <p>
{{ _('Started:') }} {{ _('Started:') }}
<span class="datetime" data-datetime="{{ h.render_datetime(job.gather_started, date_format='%Y-%m-%dT%H:%M:%S%z') }}"> <span class="automatic-local-datetime" data-datetime="{{ h.render_datetime(job.gather_started, date_format='%Y-%m-%dT%H:%M:%S%z') }}">
{{ h.render_datetime(job.gather_started, with_hours=True) or _('Not yet') }} {{ h.render_datetime(job.gather_started, with_hours=True) or _('Not yet') }}
</span> </span>
&mdash; &mdash;
{{ _('Finished:') }} {{ _('Finished:') }}
<span class="datetime" data-datetime="{{ h.render_datetime(job.finished, date_format='%Y-%m-%dT%H:%M:%S%z') }}"> <span class="automatic-local-datetime" data-datetime="{{ h.render_datetime(job.finished, date_format='%Y-%m-%dT%H:%M:%S%z') }}">
{{ h.render_datetime(job.finished, with_hours=True) or _('Not yet') }} {{ h.render_datetime(job.finished, with_hours=True) or _('Not yet') }}
</span> </span>
</p> </p>