diff --git a/app/templates/patching_import.html b/app/templates/patching_import.html index 9b7b2ed..35af6d1 100644 --- a/app/templates/patching_import.html +++ b/app/templates/patching_import.html @@ -190,6 +190,13 @@ 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){ if (!v) return ''; const s = String(v); @@ -323,7 +330,7 @@ + '