Log 1982
22/08/2023 2023-08-22 14:29$creationDate = #תאריך יצירה#;
$slaHours = #SLA#;
if (strpos($creationDate, ‘/’) !== false) {
list($day, $month, $year) = explode(‘/’, $creationDate);
$timestamp = mktime(0, 0, 0, $month, $day, $year);
} else {
$timestamp = strtotime($creationDate);
}
$targetDateTimestamp = strtotime(“+$slaHours hours”, $timestamp);
$targetDate = date(‘d/m/Y’, $targetDateTimestamp);
return “#תאריך יצירה# ” . #SLA# . ” #תאריך יעד#”;