[FIX] Precisione normativa: relazione finale +1 mese DALLA NOTIFICA + guida allineata
Da test multi-agente (aderenza normativa): - IncidentController: final_report_due calcolato come detected+72h+1mese (= 1 mese dalla notifica, Art.23.4 lett.d), non detected+30gg. Allineato create() e update(). - guida.html: "40+ domande" -> "26 domande GV.SC" (numero reale del template NIS2 base); etichetta "Report Finale (30gg)" -> "(1 mese dalla notifica)". Esito review 10 agenti: app solida (0 SQLi/IDOR/XSS cross-tenant, JWT/refresh ok, DB integro 032/033 applicate, 0 citazioni normative inventate, Allegato 3/4 corretto). php -l OK. version 1.10.7. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
8a55194b2f
commit
54a9c0987f
@@ -92,9 +92,9 @@ class IncidentController extends BaseController
|
||||
// Calcola scadenze NIS2 Art. 23 se significativo
|
||||
if ($isSignificant) {
|
||||
$detectedTime = strtotime($detectedAt);
|
||||
$data['early_warning_due'] = date('Y-m-d H:i:s', $detectedTime + 24 * 3600); // +24h
|
||||
$data['notification_due'] = date('Y-m-d H:i:s', $detectedTime + 72 * 3600); // +72h
|
||||
$data['final_report_due'] = date('Y-m-d H:i:s', $detectedTime + 30 * 86400); // +30 giorni
|
||||
$data['early_warning_due'] = date('Y-m-d H:i:s', $detectedTime + 24 * 3600); // +24h
|
||||
$data['notification_due'] = date('Y-m-d H:i:s', $detectedTime + 72 * 3600); // +72h
|
||||
$data['final_report_due'] = date('Y-m-d H:i:s', $detectedTime + 72 * 3600 + 30 * 86400); // 1 mese dalla notifica (Art.23.4 lett.d)
|
||||
}
|
||||
|
||||
$incidentId = Database::insert('incidents', $data);
|
||||
@@ -222,7 +222,7 @@ class IncidentController extends BaseController
|
||||
$detectedTime = strtotime($incident['detected_at']);
|
||||
$updates['early_warning_due'] = date('Y-m-d H:i:s', $detectedTime + 24 * 3600);
|
||||
$updates['notification_due'] = date('Y-m-d H:i:s', $detectedTime + 72 * 3600);
|
||||
$updates['final_report_due'] = date('Y-m-d H:i:s', $detectedTime + 30 * 86400);
|
||||
$updates['final_report_due'] = date('Y-m-d H:i:s', $detectedTime + 72 * 3600 + 30 * 86400); // 1 mese dalla notifica (Art.23.4 lett.d)
|
||||
}
|
||||
|
||||
if (!empty($updates)) {
|
||||
|
||||
Reference in New Issue
Block a user