fix: display db timestamps in Brussels time

(heure de dépôt was showing UTC)

- feat: add date_depot column (real TFE deposit date)
with CSV round-trip + Brussels→UTC sanitization
- fix: keep PHP default tz at UTC to preserve token/share-link
 expiry consistency; convert to Brussels only in db_datetime()
This commit is contained in:
Pontoporeia
2026-09-18 16:26:36 +02:00
parent 2232981753
commit 30a16f9e9e
13 changed files with 280 additions and 9 deletions
+3
View File
@@ -290,6 +290,7 @@ class ExportController
['Licence personnalisée', 'license_custom', 'licence-perso'],
['Contact visible', 'contact_visible', 'contact-visible'],
['Objet', 'objet', 'objet'],
['Date de dépôt', 'date_depot', 'dépôt'],
];
/**
@@ -336,6 +337,7 @@ class ExportController
'Licence personnalisée',
'Contact visible',
'Objet',
'Date de dépôt',
];
/**
@@ -461,6 +463,7 @@ class ExportController
$t['license_custom'] ?? '',
$t['contact_visible'] ?? '',
$t['objet'] ?? '',
!empty($t['date_depot']) ? db_datetime((string)$t['date_depot'], 'd/m/Y H:i') : '',
];
}
+2 -1
View File
@@ -2722,7 +2722,8 @@ class Database
t.duration_pages,
t.duration_minutes,
t.has_annexes,
t.objet
t.objet,
t.date_depot
FROM theses t
LEFT JOIN orientations o ON t.orientation_id = o.id
LEFT JOIN ap_programs ap ON t.ap_program_id = ap.id