Make sorting by time on clocks page more predictable

This is a little bit of a hack but works well. Add the timezone name to
the end of the sort so those in the same time zone end up next to each
other. For timezones like CEST that have many different specifiers, it
makes more sense to group them by 'Europe/Berlin', 'Europe/Paris', etc.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2012-04-27 09:02:18 -05:00
parent dc94eade03
commit 15c94b2061
2 changed files with 5 additions and 1 deletions

View File

@ -85,6 +85,10 @@ input[type=submit] {
clear: both;
}
.hide {
display: none;
}
hr {
border: none;
border-top: 1px solid #888;

View File

@ -34,7 +34,7 @@ <h2>Developer World Clocks</h2>
<td>{{ dev.userprofile.alias }}</td>
<td>{% if dev.userprofile.country %}<img src="{{ dev.userprofile.country.flag }}" alt="{{ dev.userprofile.country.name }}"/> {% endif %}{{ dev.userprofile.location }}</td>
<td>{{ dev.userprofile.time_zone }}</td>
<td>{{ utc_now|timezone:dev.userprofile.time_zone|date:"Y-m-d H:i T" }}</td>
<td>{{ utc_now|timezone:dev.userprofile.time_zone|date:"Y-m-d H:i T" }}<span class="hide"> {{ dev.userprofile.time_zone }}</span></td>
</tr>
{% endfor %}
</tbody>