FIX_notification date format

This commit is contained in:
VE10-Sanjeev 2024-11-13 03:53:25 +00:00
parent cdba8b8c82
commit e0a079782c

View File

@ -637,7 +637,7 @@ class Notifications extends BaseController
$emailContent = str_replace("{SCHEME_NAME}", $schemename, $emailContent);
}
if (isset($expirydate)) {
$expiryon = $expirydate ? date('d/m/Y', strtotime($expirydate)) : '';
$expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
$emailContent = str_replace("{EXPIRY_DATE}", $expiryon, $emailContent);
}
if (isset($membership_id)) {
@ -735,7 +735,7 @@ class Notifications extends BaseController
$whatsappContent = str_replace("{SCHEME_NAME}", $schemename, $whatsappContent);
}
if (isset($expirydate)) {
$expiryon = $expirydate ? date('d/m/Y', strtotime($expirydate)) : '';
$expiryon = $expirydate ? date('d-m-Y', strtotime($expirydate)) : '';
$whatsappContent = str_replace("{EXPIRY_DATE}", $expiryon, $whatsappContent);
}
if (isset($customerId)) {
@ -1024,7 +1024,7 @@ class Notifications extends BaseController
$notificationContent = str_replace("{SCHEME_NAME}", $dataPointsArray["scheme_name"], $notificationContent);
}
if (isset($dataPointsArray["formatted_due_date"])) {
$expiryon = $dataPointsArray["formatted_due_date"] ? date('d/m/Y', strtotime($dataPointsArray["formatted_due_date"])) : '';
$expiryon = $dataPointsArray["formatted_due_date"] ? date('d-m-Y', strtotime($dataPointsArray["formatted_due_date"])) : '';
$notificationContent = str_replace("{EXPIRY_DATE}", $expiryon, $notificationContent);
}
if (isset($dataPointsArray["customer_id"])) {