german time representation by keeping the ordering right; see #3

This commit is contained in:
Jottyfan
2024-01-13 15:42:59 +01:00
parent f1f9a5be9b
commit cffe483969
2 changed files with 3 additions and 7 deletions

View File

@ -14,7 +14,7 @@
</thead>
<tbody>
<tr th:each="s : ${list}">
<td><span th:text="${#temporals.format(s.slotDay, 'yyyy-MM-dd')}"></span></td>
<td th:data-sort="${#temporals.format(s.slotDay, 'yyyy-MM-dd')}"><span th:text="${#temporals.format(s.slotDay, 'dd.MM.yyyy')}"></span></td>
<td><a th:href="@{/lesson?slotId={id}(id=${s.pkSlot})}" class="btn btn-outline-secondary"> <span th:text="${s.abbreviation}" th:if="${s.abbreviation}"></span> <i
class="bi bi-pencil" th:if="${s.abbreviation == null || s.abbreviation.isBlank()}"></i>
</a></td>
@ -48,10 +48,6 @@
/*<![CDATA[*/
$(document).ready(function() {
$("#table").DataTable({
"columnDefs" : [ {
"targets" : 0,
"type" : "date-eu"
} ],
"order" : [ [ 0, 'desc' ] ],
"language" : locale_de
});