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:
@@ -761,12 +761,14 @@
|
|||||||
'is-reste': kind === 'reste' || kind === 'inconnu',
|
'is-reste': kind === 'reste' || kind === 'inconnu',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// jj/mm/aa -- shorter than the API's ISO yyyy-mm-dd, saves column
|
// aa/mm/jj -- shorter than the API's ISO yyyy-mm-dd (saves column
|
||||||
// width in a table already packed with 8 compte columns.
|
// 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) {
|
formatDate(iso) {
|
||||||
if (!iso) return '';
|
if (!iso) return '';
|
||||||
const [y, m, d] = iso.split('-');
|
const [y, m, d] = iso.split('-');
|
||||||
return d + '/' + m + '/' + y.slice(2);
|
return y.slice(2) + '/' + m + '/' + d;
|
||||||
},
|
},
|
||||||
typeLabel(t) {
|
typeLabel(t) {
|
||||||
return TYPE_LABELS[t] || t;
|
return TYPE_LABELS[t] || t;
|
||||||
|
|||||||
Reference in New Issue
Block a user