feat(patching/import): affichage date au format FR dd/mm/yyyy (tri reste sur start_iso ISO)
This commit is contained in:
parent
1ef9ecf85f
commit
6eb7619efc
@ -190,6 +190,13 @@
|
|||||||
return String(s).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
return String(s).replace(/[&<>"']/g, c => ({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dateFR(iso){
|
||||||
|
// 'YYYY-MM-DD' -> 'DD/MM/YYYY'
|
||||||
|
if (!iso) return '';
|
||||||
|
const m = String(iso).match(/^(\d{4})-(\d{2})-(\d{2})/);
|
||||||
|
return m ? (m[3] + '/' + m[2] + '/' + m[1]) : iso;
|
||||||
|
}
|
||||||
|
|
||||||
function shortOSVersion(v){
|
function shortOSVersion(v){
|
||||||
if (!v) return '';
|
if (!v) return '';
|
||||||
const s = String(v);
|
const s = String(v);
|
||||||
@ -323,7 +330,7 @@
|
|||||||
+ '<td class="p-1">' + escapeHTML(r.valideur_ra||'') + '</td>'
|
+ '<td class="p-1">' + escapeHTML(r.valideur_ra||'') + '</td>'
|
||||||
+ '<td class="p-1">' + escapeHTML(r.responsable_domaine_dts||'') + '</td>'
|
+ '<td class="p-1">' + escapeHTML(r.responsable_domaine_dts||'') + '</td>'
|
||||||
+ '<td class="p-1">' + escapeHTML(r.referent_technique||'') + '</td>'
|
+ '<td class="p-1">' + escapeHTML(r.referent_technique||'') + '</td>'
|
||||||
+ '<td class="p-1">' + (r.jour ? escapeHTML(r.jour) : (r.jour_text ? '<span class="text-cyber-yellow" title="Texte libre">' + escapeHTML(r.jour_text) + '</span>' : '')) + '</td>'
|
+ '<td class="p-1">' + (r.jour ? escapeHTML(dateFR(r.jour)) : (r.jour_text ? '<span class="text-cyber-yellow" title="Texte libre">' + escapeHTML(r.jour_text) + '</span>' : '')) + '</td>'
|
||||||
+ '<td class="p-1">' + escapeHTML(r.heure||'') + '</td>'
|
+ '<td class="p-1">' + escapeHTML(r.heure||'') + '</td>'
|
||||||
+ '</tr>';
|
+ '</tr>';
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user