FIX_notification date format
This commit is contained in:
parent
cdba8b8c82
commit
e0a079782c
@ -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"])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user