Display /lignes dates as aa/mm/jj instead of jj/mm/aa

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-06 17:56:57 +02:00
co-authored by Claude Sonnet 5
parent 78661628fc
commit 775ee0955f
@@ -761,12 +761,14 @@
'is-reste': kind === 'reste' || kind === 'inconnu',
};
},
// jj/mm/aa -- shorter than the API's ISO yyyy-mm-dd, saves column
// width in a table already packed with 8 compte columns.
// aa/mm/jj -- shorter than the API's ISO yyyy-mm-dd (saves column
// width in a table already packed with 8 compte columns) while
// keeping the same year-month-day ordering, so it still sorts
// correctly as plain text and reads unambiguously either way.
formatDate(iso) {
if (!iso) return '';
const [y, m, d] = iso.split('-');
return d + '/' + m + '/' + y.slice(2);
return y.slice(2) + '/' + m + '/' + d;
},
typeLabel(t) {
return TYPE_LABELS[t] || t;