diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index dc599ccf..38243a77 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -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"])) {