mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
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:
@@ -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') : '',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user