From ec1483c34f64a4f339768dc8b5e3a1d5fd6a253f Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 28 Jul 2022 14:45:31 +1000 Subject: [PATCH] [REF] Add in Post Upgrade message about %A format change --- CRM/Upgrade/Incremental/php/FiveFiftyThree.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CRM/Upgrade/Incremental/php/FiveFiftyThree.php b/CRM/Upgrade/Incremental/php/FiveFiftyThree.php index fcd688ef6bdf..cfc69443ee35 100644 --- a/CRM/Upgrade/Incremental/php/FiveFiftyThree.php +++ b/CRM/Upgrade/Incremental/php/FiveFiftyThree.php @@ -21,6 +21,16 @@ */ class CRM_Upgrade_Incremental_php_FiveFiftyThree extends CRM_Upgrade_Incremental_Base { + public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) { + if ($rev === '5.53.alpha1') { + $postUpgradeMessage .= '
' . ts("WARNING: CiviCRM has changed our the date format variable %1 is outputted when using CRM_Core_Date::customFormat / crmDate. Please review your Date Format settings and your system message templates for usage of the %1 variable", [ + 1 => '%A', + 2 => CRM_Utils_System::url('civicrm/admin/setting/date', ['reset' => 1], TRUE), + 3 => CRM_Utils_System::url('civicrm/admin/messageTemplates', ['reset' => 1, 'selectedChild' => 'workflow'], TRUE), + ]); + } + } + /** * Upgrade step; adds tasks including 'runSql'. *