From a9788ce8941b6df5a1dafd78a2c2a98ea22a8089 Mon Sep 17 00:00:00 2001 From: Uma <uma.s@vtiger.com> Date: Mon, 10 Aug 2020 12:02:16 +0530 Subject: [PATCH] Fixes #1433 Calendar view display mis-matches the dates from records --- modules/Calendar/actions/Feed.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/Calendar/actions/Feed.php b/modules/Calendar/actions/Feed.php index 3df75e4b7..e14ede99e 100644 --- a/modules/Calendar/actions/Feed.php +++ b/modules/Calendar/actions/Feed.php @@ -208,10 +208,11 @@ class Calendar_Feed_Action extends Vtiger_BasicAjax_Action { $item['sourceModule'] = $moduleModel->getName(); $item['fieldName'] = $fieldName; $item['conditions'] = ''; - if(!empty($conditions)) { - $item['conditions'] = Zend_Json::encode(Zend_Json::encode($conditions)); - } - $result[] = $item; + $item['end'] = date('Y-m-d', strtotime(($item['end'] ?: $item['start']).' +1day')); + if(!empty($conditions)) { + $item['conditions'] = Zend_Json::encode(Zend_Json::encode($conditions)); + } + $result[] = $item; } } -- GitLab