19 lines
629 B
JavaScript
19 lines
629 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.formatReportDate = formatReportDate;
|
|
/** Human-readable date/time for admin report exports. */
|
|
function formatReportDate(value) {
|
|
if (value == null || value === '')
|
|
return '';
|
|
const d = value instanceof Date ? value : new Date(String(value));
|
|
if (Number.isNaN(d.getTime()))
|
|
return String(value);
|
|
return d.toLocaleString('fr-FR', {
|
|
day: '2-digit',
|
|
month: '2-digit',
|
|
year: 'numeric',
|
|
hour: '2-digit',
|
|
minute: '2-digit',
|
|
});
|
|
}
|
|
//# sourceMappingURL=reportDateFormat.js.map
|