From e8e7dd7696cd07d09adf2794bc663dd745dfcdfe Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 31 Mar 2022 13:21:13 -0400 Subject: [PATCH] put dates back to not including time --- tests/phpunit/CRM/Contribute/Form/ContributionTest.php | 4 ++-- .../message_templates/contribution_offline_receipt_html.tpl | 4 ++-- .../message_templates/contribution_offline_receipt_text.tpl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php index 64b676248a..4f055a4074 100644 --- a/tests/phpunit/CRM/Contribute/Form/ContributionTest.php +++ b/tests/phpunit/CRM/Contribute/Form/ContributionTest.php @@ -1154,7 +1154,7 @@ Price Field - Price Field 1 1 $100.00 $100.00 $strings = [ 'Total Tax Amount : $' . $this->formatMoneyInput(1000.00), 'Total Amount : $' . $this->formatMoneyInput(11000.00), - 'Date Received: April 21st, 2015', + 'Date Received: 04/21/2015', 'Paid By: Check', 'Check Number: 12345', ]; @@ -1213,7 +1213,7 @@ Price Field - Price Field 1 1 $100.00 $100.00 $strings = [ 'Total Tax Amount : $' . $this->formatMoneyInput(2000), 'Total Amount : $' . $this->formatMoneyInput(22000.00), - 'Date Received: April 21st, 2015', + 'Date Received: 04/21/2015', 'Paid By: Check', 'Check Number: 12345', 'Financial Type: Donation', diff --git a/xml/templates/message_templates/contribution_offline_receipt_html.tpl b/xml/templates/message_templates/contribution_offline_receipt_html.tpl index c95b996aca..6340823fe0 100644 --- a/xml/templates/message_templates/contribution_offline_receipt_html.tpl +++ b/xml/templates/message_templates/contribution_offline_receipt_html.tpl @@ -157,7 +157,7 @@ {ts}Date Received{/ts} - {contribution.receive_date} + {contribution.receive_date|crmDate:"shortdate"} {/if} @@ -168,7 +168,7 @@ {ts}Receipt Date{/ts} - {contribution.receipt_date} + {contribution.receipt_date|crmDate:"shortdate"} {/if} diff --git a/xml/templates/message_templates/contribution_offline_receipt_text.tpl b/xml/templates/message_templates/contribution_offline_receipt_text.tpl index f895c06ccb..10ace7ddac 100644 --- a/xml/templates/message_templates/contribution_offline_receipt_text.tpl +++ b/xml/templates/message_templates/contribution_offline_receipt_text.tpl @@ -49,10 +49,10 @@ {/if} {ts}Total Amount{/ts} : {contribution.total_amount} {if '{contribution.receive_date}'} -{ts}Date Received{/ts}: {contribution.receive_date} +{ts}Date Received{/ts}: {contribution.receive_date|crmDate:"shortdate"} {/if} {if '{contribution.receipt_date}'} -{ts}Receipt Date{/ts}: {contribution.receipt_date} +{ts}Receipt Date{/ts}: {contribution.receipt_date|crmDate:"shortdate"} {/if} {if '{contribution.payment_instrument_id}' and empty($formValues.hidden_CreditCard)} {ts}Paid By{/ts}: {contribution.payment_instrument_id:label} -- 2.25.1