From c4819e29e0b6097b8edb8e481c410b4660144143 Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 23 Mar 2016 17:01:00 +0200 Subject: [PATCH] fix inv email date time --- application/Espo/Modules/Crm/Business/Event/Invitations.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/Espo/Modules/Crm/Business/Event/Invitations.php b/application/Espo/Modules/Crm/Business/Event/Invitations.php index 6b93452157..f5e96b563f 100644 --- a/application/Espo/Modules/Crm/Business/Event/Invitations.php +++ b/application/Espo/Modules/Crm/Business/Event/Invitations.php @@ -77,14 +77,16 @@ class Invitations case 'datetime': $value = $entity->get($field); if ($value) { - $contents = str_replace($key, $this->dateTime->convertSystemDateTime($value), $contents); + $value = $this->dateTime->convertSystemDateTime($value); } + $contents = str_replace($key, $value, $contents); break; case 'date': $value = $entity->get($field); if ($value) { - $contents = str_replace($key, $this->dateTime->convertSystemDate($value), $contents); + $value = $this->dateTime->convertSystemDate($value); } + $contents = str_replace($key, $value, $contents); break; case 'jsonArray': break;