Skip to content
Snippets Groups Projects
Commit eef49fd9 authored by Apparao G's avatar Apparao G
Browse files

#Fixes::158253812::Appu::There is time mismatch in the task management updates view

parents 1d74909b 37dd80f8
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,15 @@ class Calendar_Datetime_UIType extends Vtiger_Datetime_UIType {
public function getDisplayValue($value, $record=false, $recordInstance=false) {
//Since date_start and due_date fields of calendar can have time appended or removed
if($this->hasTimeComponent($value)) {
return parent::getDisplayValue($value);
}else{
$fieldInstance = $this->get('field')->getWebserviceFieldObject();
$moduleName = $this->get('field')->getModule()->getName();
$fieldName = $fieldInstance->getFieldName();
if($fieldName == 'date_start') {
return self::getDisplayDateTimeValue($value);
} else {
return parent::getDisplayValue($value);
}
} else {
return $this->getDisplayDateValue($value);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment