From e0a079782cc1c80e7c84cc9e932d03d906be080e Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Wed, 13 Nov 2024 03:53:25 +0000 Subject: [PATCH] FIX_notification date format --- app/Controllers/Notifications.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"])) {